Add attribute to control which substitutions are performed on docinfo files

Resolves #405
Do you think that all substitutions are useful ? I don't really see a use case where you want to write a macro inside a xml or html file ?