Re: [xsl] disable-output-escaping

Subject: Re: [xsl] disable-output-escaping
From: Julian Reschke <julian.reschke@xxxxxx>
Date: Fri, 26 Mar 2004 20:24:34 +0100
Charles Ohana wrote:
Hi David,
Thank you for your help. But I still need to avoid having "&amp;" as output.
I have the following code in my stylesheet and I need the exact output.
<xsl:template>
   <script>
      var tmp = "&a";
   </script>
</xsl:template>
currently it generates
var tmp = "&amp;a"; instead of var tmp = "&a";


Thank you ...

If this is XHTML, the "&amp;" is correct. If it's HTML, just use XSLT's HTML output method (this will take case of it).


Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

Current Thread