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

Need to remove unusual character in source

Subject: Need to remove unusual character in source
From: Mario Madunic <hajduk@xxxxxxxx>
Date: Tue, 26 Sep 2006 14:31:12 -0700
0x18 character
I've come across a character in the source that I need to remove.

I'm using Saxon 8, XSLT 2

the character is and its a control character

0x18 CAN

I've tried using character-map while defining the character as an entity as such
<!ENTITY controlChar18 "&#x18;">

<xsl:character-map name="testMap">
   <xsl:output-character char="&controlChar18;" string="REMOVEDCHAR" />
</xsl:character-map>

<xsl:result-document use-character-maps="testMap".../>

the error message I recieve is
SXXP0003: Error reported by XML parser: Illegal XML character:  &#x18;.

I've tried using ANT to clean it out but with no luck using native2ascii or
escapeunicode

Can this be done or do I need to ask the client to remove it from their data,
which might not be an option?

Any help or insight would be greatly appreciated.

Marijan Madunic

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.