Subject: RE: [xsl] accessing the input XML's doctype From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 17 Jul 2008 19:21:17 +0100 |
> 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] accessing the input XML's, Darcy Parker | Thread | [xsl] Formatting issue with HTML an, Senthilkumaravelan K |
Re: [xsl] accessing the input XML's, Darcy Parker | Date | [xsl] Problem with base64encode.xsl, Torsten Schassan |
Month |