[xsl] & converted to &

Subject: [xsl] & converted to &
From: hlgoh@xxxxxxxxxxxxx (Goh Hong Ling)
Date: Fri, 28 Jun 2002 20:11:48 +0800
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 &#38; </xsl:when>
<xsl:when test=" code='14' ">&#163;</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 &amp;.
 
Any idea what is happening?
 
Thanks in advance for the help. *_*
 
Have a nice day !
 
best regards,
Hong Ling
 
Current Thread