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="'
12'" />
<xsl:variable name="SO" select="''" /> <xsl:variable
name="SI" select="''" /> ... <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