Re: [xsl] Using HTML entity codes within XSL?

Subject: Re: [xsl] Using HTML entity codes within XSL?
From: "Christopher P. Wang" <cpwang@xxxxxxxxxx>
Date: Wed, 18 Dec 2002 17:06:04 -0500
Rich,

I believe you could try something like

       <xsl:text 
disable-output-escaping="yes"><![CDATA[&nbsp;&nbsp;]]></xsl:text>

So in your case, you could do:

<xsl:template match="/">
  <html>
  <body>
        <xsl:text 
disable-output-escaping="yes"><![CDATA[&pound;]]></xsl:text>
        <xsl:value-of select="data/premiumAmount" />
  </body>
  </html>
</xsl:template>

You can think of it as outputting the entity to your result, which would 
be your HTML document, but disabling it at the time of the XSLT 
processing.

Regards,
Chris

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread