Description
Disable-output-escaping does not work correctly in this case : it is always disabled, where it should be disabled the first time and enabled the second time.
=== Bug.java ===
import java.io.File;
import javax.xml.transform.sax.SAXResult;
import javax.xml.transform.sax.SAXTransformerFactory;
import javax.xml.transform.sax.TransformerHandler;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.jdom.Element;
import org.jdom.output.SAXOutputter;
public class Bug {
public static void main(String[] args) throws Exception
}
=== foo.xsl ===
<?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" />
No: <xsl:value-of select="/something" disable-output-escaping="no" />
</xsl:template>
</xsl:stylesheet>
Attachments
Attachments
Issue Links
- duplicates
-
XALANJ-2210 public XPathFunction resolveFunction(QName qname, int arity) handles className incorrectly
- Open