[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: 0x19 is not a legal XML character

Subject: Re: 0x19 is not a legal XML character
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 28 Jun 2007 12:21:00 +0200
Re:  0x19 is not a legal XML character
Mulberry Technologies List Owner wrote:
Friends --

Unless you have an XSL-based solution to this problem please respond off list only.

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'), '&#x19;', '')" />
</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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.