Bug #2582
closedInternal error: expression element() has no retained static context
100%
Description
Reported here:
https://saxonica.plan.io/boards/3/topics/6283
The failure occurs at compile time, but only under Saxon-HE (no failure under EE).
Updated by Michael Kay almost 9 years ago
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::)]".
Updated by Michael Kay almost 9 years ago
Indeed, the failure occurs while Saxon is performing this very optimization.
Updated by Michael Kay almost 9 years ago
- 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.
Updated by O'Neil Delpratt almost 9 years ago
- % 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
Updated by O'Neil Delpratt almost 9 years ago
- Status changed from Resolved to Closed
Please register to edit this issue