This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Preserving character references?
- To: "XSL List" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Preserving character references?
- From: "Michael Lee" <mlee at kanhan dot com>
- Date: Fri, 12 Jan 2001 12:41:13 +0800
- Cc: "Kenny Ho" <kenny at kanhan dot com>, "Stan Lam" <stanlam at kanhan dot com>
- Organization: kanhan.com
- Reply-To: xsl-list at lists dot mulberrytech dot com
Is there a way I can preserve character references and their format (decimal
or hexadecimal) in a XML document when performing a XSLT transformation?
For example, if I have the following text in the source XML document:
繁體中文
I would like to have exactly the same thing in the output XML document:
繁體中文
I tried to perform transformations using MSXML3 (via XMLSpy) and Unicorn
XSLT Processor but both of them resolved the character references.
Also, the value of the encoding attribute in <xsl:output> of my XSLT
stylesheet was set to "UTF-8" element. When I changed it to "ISO-8859-1",
Unicorn changed the character references into decimal form:
繁體中文
Therefore, I want to know if there is any way I can force the XSLT processor
to preserve these character references and their format. Thanks in advance!
Michael Lee
mlee@kanhan.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list