xsl-list
[Top] [All Lists]

RE: Invalid unicode character - Problem

2003-03-05 12:57:01
I am trying to place ASCII characters below 32 in my XSL document as
follows:

Actually you are trying to place Unicode characters in the document.

The only Unicode characters below 32 that are allowed in XML are 9, 10,
and 13. This is an XML restriction, not XSLT.

Michael Kay


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="text" encoding="ISO-8859-1"/>
<xsl:template match="/">
<xsl:variable name="LF12" select="'&#x1F;&#x0A;12&#x1F;'" /> 
<xsl:variable name="SO" select="'&#x0E;'" /> <xsl:variable 
name="SI" select="'&#x0F;'" /> ... <xsl:copy-of 
select="$LF12" /> <xsl:copy-of select="$SO" /> <xsl:copy-of 
select="$SI" /> </xsl:template> </xsl:stylesheet>

Problem I encountered is that whenever I load it I get a 
Parse Error of "Invalid Unicode Character".  I could change 
the values and run the resulting text through a Hex 
translator but with several thousand characters that can 
follow it could take time.  As I'm new to the whole XSL 
language I don't know all the ins and outs yet but if there 
is a way I would appreciate it if you could let me know.

Thanks in advance for any help received in this matter.

Thorsten

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



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



<Prev in Thread] Current Thread [Next in Thread>