xsl-list
[Top] [All Lists]

Re: Using HTML entity codes within XSL?

2002-12-18 15:06:04
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



<Prev in Thread] Current Thread [Next in Thread>