Bug #2702
closed
XSL: castable as xs:base64Binary crashes if false()
Category:
XPath conformance
Applies to branch:
9.6, 9.7, trunk
Fix Committed on Branch:
9.6, 9.7, trunk
Fixed in Maintenance Release:
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
- 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.
- 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)
- 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.
- Sprint/Milestone set to 9.7.0.5
- 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.
- Fixed in Maintenance Release 9.7.0.5 added
- Applies to branch trunk added
- Applies to branch deleted (
9.8)
- Fix Committed on Branch trunk added
- Fix Committed on Branch deleted (
9.8)
Please register to edit this issue
Also available in: Atom
PDF