This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
& converted to &
- From: hlgoh at jobstreet dot com (Goh Hong Ling)
- To: "Xsl-List at Lists dot Mulberrytech. Com" <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 28 Jun 2002 20:11:48 +0800
- Subject: [xsl] & converted to &
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hai All,
In my XSLT file, I want to convert a code to a
description. The description somehow might contains &, < and >
symbols. The description will display as a plaintext. In my XSL
file, I set
<xsl:when test=" code='13' ">AI &
</xsl:when>
<xsl:when test=" code='14'
">£</xsl:when>
When I view the output from my browser, code 13 and 14
display the correct output, AI & and .
But when I do the translation thru using MSXML2 and DOM
object, code 14 display as but code 13 turn to AI
&.
Any idea what is happening?
Thanks in advance for the help. *_*
Have a nice day !
best regards,
Hong Ling