[xslt] libxslt-1.0.20 and disable-output-escaping broken?



Hi,

I noticed that libxslt-1.0.20 seems to be broken, "disable-output-escaping" does no longer work. 
Here's an example:

XML:
<?xml version="1.0" encoding="iso-8859-1"?>
  <beitrag>
    &lt;b&gt;This is HTML&lt;/b&gt;
  </beitrag>

XSLT:
<?xml version="1.0" encoding="iso-8859-1"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
    <xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
    <xsl:template match="/*">
      <xsl:value-of select="text()" disable-output-escaping="yes"/>
    </xsl:template>
  </xsl:stylesheet>


For libxslt-1.0.19 (and any earlier version) I get:
<b>This is HTML</b>

For libxslt-1.0.20 I get:
&lt;b&gt;This is HTML&lt;/b&gt;

The I tried the same with CDATA:
<?xml version="1.0" encoding="iso-8859-1"?>
  <beitrag><![CDATA[<b>This is HTML</b>]]></beitrag>
and get:
&lt;b&gt;This is HTML&lt;/b&gt;
which is wrong as well.

Then I tried the same XSL without the line:
<xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
but IMO the "disable-output-escaping" should work anyways.

Any ideas?

Thanks!

Best regards,
	Mario Weilguni






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]