Add attribute to control which substitutions are performed on docinfo files

Resolves #405