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

XSLT does not handles charcters less than x0020 hex

Subject: XSLT does not handles charcters less than x0020 hex
From: Lim Wai Kheong <wklim@xxxxxxxxxx>
Date: Thu, 12 Apr 2001 12:40:51 +0800
x0020 xml
It seems to me that XSLT does not handle characters with reference less
than 0020(hex). I am using LotusXSL with Xalan and Xerces.

Please have a look at my following example, "&#x0020" is parsed but not
"&#001f". Did I overlook something that causes such problem.

I need to output some special characters (all < x0020) for a legacy
system which uses these special characters to format messages to be sent
through a socket connection. Does XSLT a good way to tranform a XML file
to a string which contains special ASCII codes? If not, can anyone
suggest a better solution?



__________________________________________________________________________

<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:output method="text" encoding="iso-8859-1"/>

<xsl:template match="myspace">
 &#x0020;
<!-- This is OK -->
</xsl:template>

<xsl:template match="special">
&#x001f;
<!-- Failed. Character reference "&#003;" is an invalid XML character.
-->
</xsl:template>

</xsl:stylesheet>
____________________________________________________________________________



Thank you.


regards,
Wai Kheong


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.