|
|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] 0x19 is not a legal XML character
Subject: Re: [xsl] 0x19 is not a legal XML character
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 28 Jun 2007 12:21:00 +0200
|
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'),
'', '')" />
</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
|
| |
© 2002-2008 SyncRO Soft Ltd. All rights reserved.
| Sitemap | Privacy Policy This website was created & generated with
<oXygen/> XML Editor |
|
|