[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 0x19 is not a legal XML character
Mulberry Technologies List Owner wrote:
Friends -- I'll give that a try. Not sure this works, though, haven't tried it: <xsl:template match="main"> <xsl:value-of select="replace(unparsed-text('offended-xml-file.xml'), '', '')" /> </xsl:template> Using Saxon, set it to use the XML 1.1 feature to 'on', like this: java -jar saxon8.jar -1.1 -it main mytransform.xslt >new-output.xml this may work and will remove all offending U+0019 chars. You must set the XML 1.1 features, because otherwise it cannot read any data (XML or otherwise) that contain non-XML 1.0 characters. The only character not allowed in XML 1.1 is U+0000. Cheers, -- Abel Braaksma
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|