Project

Profile

Help

Bug #2702

closed

XSL: castable as xs:base64Binary crashes if false()

Added by Alexander Henket over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
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
Fixed in Maintenance Release:
Platforms:

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

pre-process-xml.xsl (961 Bytes) pre-process-xml.xsl Reproduction XSL. Run against itself to test Alexander Henket, 2016-04-08 09:22
Actions #1

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.

Actions #2

Updated by Alexander Henket over 8 years ago

Thanks!

Actions #3

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)
Actions #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.

Actions #5

Updated by O'Neil Delpratt over 8 years ago

  • Sprint/Milestone set to 9.7.0.5
Actions #6

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.

Actions #7

Updated by O'Neil Delpratt over 8 years ago

  • Fixed in Maintenance Release 9.7.0.5 added
Actions #8

Updated by O'Neil Delpratt over 7 years ago

  • Applies to branch trunk added
  • Applies to branch deleted (9.8)
Actions #9

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

Also available in: Atom PDF