copying XML containing Unicode to HTML

Subject: copying XML containing Unicode to HTML
From: Dan Cornell <dancor@xxxxxxx>
Date: Wed, 17 May 2000 16:55:51 -0700
Can I copy XML input containing escaped Unicode characters to HTML output,
preserving the EXACT format of the input?

Given the following XML input:

	<TX>&#x2014;&#x2014; Unescaped Text.</TX>

and given the XSLT below:

<xsl:output method="HTML" />
<xsl:text disable-output-escaping = "yes">"&gt;</xsl:text>
<xsl:value-of select="TX" disable-output-escaping="no"/>
<xsl:text disable-output-escaping = "yes">&lt;/span&gt;</xsl:text>

The problem is with the contents of the TX node: copying the contents of
<TX> results in the special UNICODE characters &#x2014; 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:

&#x2014;&#x2014; Unescaped Text.

Do you know how to do this?

Dan Cornell

 XSL-List info and archive:

Current Thread