resolves #403 substitute attributes in docinfo files