This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
copying XML containing Unicode to HTML
- To: xsl-list at mulberrytech dot com
- Subject: copying XML containing Unicode to HTML
- From: Dan Cornell <dancor at wrq dot com>
- Date: Wed, 17 May 2000 16:55:51 -0700
- Reply-To: xsl-list at mulberrytech dot com
Can I copy XML input containing escaped Unicode characters to HTML output,
preserving the EXACT format of the input?
Given the following XML input:
<EL>
<LC>1</LC>
<TX>—— Unescaped Text.</TX>
<HI>0</HI>
<LO>0</LO>
</EL>
and given the XSLT below:
<xsl:output method="HTML" />
...
<xsl:text disable-output-escaping = "yes">"></xsl:text>
<xsl:value-of select="TX" disable-output-escaping="no"/>
<xsl:text disable-output-escaping = "yes"></span></xsl:text>
The problem is with the contents of the TX node: copying the contents of
<TX> results in the special UNICODE characters — getting translated
by the XSL processor into a question mark (?). The output looks like so:
?? Unescaped Text.
What I would like instead is to have the contents of the <TX> node copied to
the output HTML unchanged, i.e. I would like to see the following:
—— Unescaped Text.
Do you know how to do this?
Dan Cornell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list