xsl-list
[Top] [All Lists]

Re: disable-output-escaping

2004-03-26 12:24:34
Charles Ohana wrote:
Hi David,
Thank you for your help. But I still need to avoid having "&" 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


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