Keep CDATA for xstl tranformation?

hautt66

New Member
I'm doing a xstl transformation with saxon from an XML document.The doc is not standard-valid XML, and I want to preserve all \[code\]<![CDATA[<\[/code\] elements that are found in there.However using the .xsl file for transformation with \[code\]Transformer trans = TransformerFactory.newInstance().newTransformer(new StreamSource(new File("foo.xsl"));trans.transform(new StreamSource(new File("foo.xml"), new StreamResult(new File("output.xml")));\[/code\]results in stripping out these CDATA entries. How can I prevent this?
 
Back
Top