[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
unicode to html
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>&#x2014;&#x2014; 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">"&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:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.