nd. If a dictionary 'd' is passed then merge with document attributes and perform attribute substitution on tags.zmissing tag: %sr'