Add attribute to control which substitutions are performed on docinfo files

Resolves #405
I'll see if I can sort out how to reuse the method so that we don't need to hardcode this list here.