This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

& converted to &


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
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]