Hello,

I'd like to have your opinion regarding a possible bug in Xalan 2.7.0...

Here are 2 stylesheets. With the first stylesheet, output is always escaped
(it's not what I expect), while in the second case, output is escaped as I
expect it to be.

Do you know if it is normal?

Thank you!

Andre Powroznik

Stylesheet 1:
=============

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:template match="/">
    Yes: <xsl:value-of select="/something" disable-output-escaping="yes" />
    <hr />
    No: <xsl:value-of select="/something" disable-output-escaping="no" />
  </xsl:template>
</xsl:stylesheet>

Stylesheet 2:
=============

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:template match="/">
    No: <xsl:value-of select="/something" disable-output-escaping="no" />
    <hr />
    Yes: <xsl:value-of select="/something" disable-output-escaping="yes" />
</xsl:template>
</xsl:stylesheet>

The XML could be, for example:
==============================

<?xml version="1.0"?>
<something>
  <a href="http://www.google.com";>Google</a>
</something>

Reply via email to