Many XML authors use entity references within their
A transformation of such a document should preserve these
references. That means, the document type declaration
the internal subset has to be preserved, too.
A simple mechanism could use a simple flag that
handling of entity references. A more sophisticated
would allow the processing of entity references and DTD
in an arbitrary way. This includes generating entity