Actions
Bug #3706
closedArray out of bounds exception results from function in template predicate
Start date:
2018-02-28
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:
Description
A template with a function in a predicate in combination with xsl:next-match is resulting in an array out of bounds exception.
Versions affected¶
I have reproduced this error in Saxon HE 9.8.0.8 and 9.7.0.19. It does not affect HE 9.6.0.8. I have tested with both Java and .NET releases of Saxon.
Steps to reproduce¶
- Convert the attached input.xml using the attached convert.xsl in Saxon HE 9.8.0.8.
Expected results¶
-
The transform produces an empty XML document.
-
Note that you can still reproduce the error even if you alter the XSLT to ensure that a root element should be in the output.
Actual results¶
- You get an exception stack trace such as the attached exception stacktrace.txt. Here is an initial summary:
java.lang.RuntimeException: Internal error evaluating template rule at line 14 in module file:/C:/Users/jgomez/Desktop/saxon-bug.xsl
at net.sf.saxon.expr.instruct.TemplateRule.applyLeavingTail(Unknown Source)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:447)
at net.sf.saxon.trans.TextOnlyCopyRuleSet.process(TextOnlyCopyRuleSet.java:65)
at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:433)
...
Files
Related issues
Please register to edit this issue
Actions