Hello, I've some troubles with escaping of entities. Let see the following xsl :

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  version="1.0">
<xsl:output method="html" encoding="UTF-8" 
        omit-xml-declaration="yes" indent="no"/>

<xsl:template match="/">
   <xsl:text disable-output-escaping="yes">&amp;#39;</xsl:text>
   <xsl:variable name="res">
     <xsl:text disable-output-escaping="yes">&amp;#39;</xsl:text>
   </xsl:variable>
   <xsl:copy-of select="$res"/>
</xsl:template>

</xsl:stylesheet>

I just want to output &#39; twice, the second one via a variable, but the result
 is "&#39;&amp;#39;" which means that the variable lost the unescaping of the
"&"
I tried the same xsl with xalan et xt and the result is "&#39;&#39;".

Another thing : while trying this xsl I send to it the following xml file :
<?xml version="1.0" encoding="iso-8859-1"?>
<Document/>

The result with version 0.51 under linux is still "&#39;&amp;#39;" but with
 0.60 under solaris I obtain "&#39;&amp;#39;</>"

What is this "</>" ?

-- 
Christian Lefebvre           T�l : 03 20 60 82 27
Atos Origin, Activit� Multim�dia
             http://www.atos-group.com/multimedia

Reply via email to