
June 24th, 2004, 10:25 AM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 2
Time spent in forums: 10 m 25 sec
Reputation Power: 0
|
|
XSL insertion of escape character in text file
Hi all,
How can I, from XSL, insert an escape character in the output file?
I have tried to use CDATA, but the XML parser complain about non-unicode characters.
Here is the section that fails:
- <xsl:template match="*/mail">
<![CDATA[ ]]>
60
<![CDATA[ ]]>
S
<xsl:value-of select="text()" />
<![CDATA[ ]]>
</xsl:template>
The square is hex value 1b, escape.
It seems that the XML-parser won't accept control code characters (hex values < 20)
The xsl is produced by a C++ program, and the escape character is inserted with character escaping (\033).
Per 
|