Does xerces provide a *pluggable* mechanism to tell the parser the
replacement text to use when it encounters an entity reference?
The specific use case is attempting to control values used in docbook
sources. So say you have:
I would like to "inject" the replacement values for the '&version;' and
'&today;' entity references. Currently I do this by injecting doctype
"internal subset" <!ENTITY ...> defs in the stream used by the parser.
What I'd much rather be able to do is to register something akin to an
EntityResolver that resolves the replacement text.