Bug #2582
closed
Internal error: expression element() has no retained static context
Category:
XSLT conformance
Fix Committed on Branch:
9.7
Fixed in Maintenance Release:
The submitter has simplified the test case to the following:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="root/*[last()]"/>
</xsl:stylesheet>
and this version also fails in Saxon-EE.
Aside: I thought there was supposed to be an optimization that replaced this by match="root/[not(following-sibling::)]".
Indeed, the failure occurs while Saxon is performing this very optimization.
- Status changed from In Progress to Resolved
- Fix Committed on Branch 9.7 added
I have applied a patch to the constructors for PatternWithPredicate and AncestorQualifiedPattern to make sure that parent pointers and static context pointers are correctly set during this optimization rewrite. This fixes the test case.
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.7.0.2 added
Bug fix applied in the Saxon 9.7.0.2 maintenance release
- Status changed from Resolved to Closed
Please register to edit this issue
Also available in: Atom
PDF