Project

Profile

Help

Bug #2702

closed

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

Added by Alexander Henket about 8 years ago. Updated almost 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

Please register to edit this issue

Also available in: Atom PDF