but I don't understand how to specify or configure Xerces to
use SAX2 output that would include markup of the doctype and
entity declarations, and also not resolve entity declarations
in the XML.
You can't do this from the command line. You need to write a Java class that
implements XMLFilter and accepts all the SAX2 events relating to DTD events,
responding to them by firing "normal" events (such as elements or processing
instructions) to its own ContentHandler. Then you can set up a JAXP pipeline
in which Xerces sends events to this filter, which passes them on to the
Saxon TransformerHandler. There are examples of such pipelines in the
TraxExamples sample application issued with Saxon.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--