Actions
Bug #2702
closedXSL: castable as xs:base64Binary crashes if false()
Start date:
2016-04-08
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.6, 9.7, trunk
Fix Committed on Branch:
9.6, 9.7, trunk
Description
I have an XSL template that looks like this:
<xsl:template match="text()[. castable as xs:base64Binary]" as="xs:string">
...
</xsl:template>
This works fine for things that are castable, but unfortunately leads to an internal error in Saxon if it is not. In my case I have a diacritical character in the string: "is geïnteresseerd"
I've attached a tiny tester that I ran against itself to reproduce.
$ java -jar ~/Development/lib/SaxonPE9-7-0-4J/saxon9pe.jar -xsl:pre-process-xml.xsl pre-process-xml.xsl
...
java.lang.RuntimeException: Internal error evaluating template rule at line 24 in module
Files
Updated by Michael Kay over 8 years ago
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Priority changed from Low to Normal
- Applies to branch 9.8 added
- Fix Committed on Branch 9.6, 9.7, 9.8 added
Thank you for reporting it. I have committed a patch on the 9.6, 9.7, and 9.8 branches, and I have added a couple of test cases to the xs-base64Binary test set in QT3.
Updated by O'Neil Delpratt over 8 years ago
- Sprint/Milestone deleted (
9.7.0.4) - % Done changed from 0 to 100
- Fixed in version deleted (
9.6.0.7 and 9.7.0.4)
Updated by O'Neil Delpratt over 8 years ago
- Fixed in Maintenance Release 9.7.0.5 added
Bug fix applied in the 9.7.0.5 maintenance release. Leaving this bug open until fix is applied in the 9.6 maintenance release.
Updated by O'Neil Delpratt over 8 years ago
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.6.0.9 added
- Fixed in Maintenance Release deleted (
9.7.0.5)
Bug fix applied in the Saxon 9.6.0.9 maintenance release.
Updated by O'Neil Delpratt over 8 years ago
- Fixed in Maintenance Release 9.7.0.5 added
Updated by O'Neil Delpratt over 7 years ago
- Applies to branch trunk added
- Applies to branch deleted (
9.8)
Updated by O'Neil Delpratt over 7 years ago
- Fix Committed on Branch trunk added
- Fix Committed on Branch deleted (
9.8)
Please register to edit this issue
Actions