Bug #1949
closedClassCastException running in-scope-prefixes
0%
Description
Reported on saxon-help list by Gunther Rademacher:
When I tried to use fn:in-scope-prefixes on Saxon CE, I received this
on the Firefox web console:
"SaxonCE.XSLT20Processor CECE12D29....html:876
SEVERE: Exception java.lang.ClassCastException in invokeTransform: null"
Maybe I am missing something, but I can't see a reason why this function
should not be available. A complete reproduction is shown below.
Thanks
Gunther
<script type="text/javascript">
var onSaxonLoad = function () {
Saxon.newXSLT20Processor(Saxon.parseXML(
'<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:p="P"
version="2.0">\n' +
' <xsl:template match="node()|@*">\n' +
' <xsl:variable name="v">\n' +
' <p:q>p:q</p:q>\n' +
' </xsl:variable>\n' +
' <h1>\n' +
' <xsl:value-of select=""in-scope-prefixes(",
node-name($v/), ") = ", in-scope-prefixes($v/)"/>\n' +
' </h1>\n' +
' </xsl:template>\n' +
'</xsl:stylesheet>'
)).updateHTMLDocument(Saxon.parseXML('<x/>'), null);
};
</script>
<script type="text/javascript" language="javascript"
src="Saxonce/Saxonce.nocache.js"></script>
Updated by Michael Kay over 6 years ago
- Status changed from New to Won't fix
Closing remaining Saxon-CE issues as "won't fix" since the product is now superseded by Saxon-JS and there is no plan to do any further maintenance.
Please register to edit this issue