Project

Profile

Help

Bug #6183

closed

"fallback=no" on UCA collation not working in EE edition

Added by Trevor Lawrence over 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2023-08-23
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
Java

Description

We are using a licensed (as of 05/04/23) edition of SaxonJ-EE 11.5.

We're using the <xsl:sort> instruction within an <xsl:for-each-group> with a custom-defined UCA collation URI. While debugging an issue with it we decided to add the fallback=no parameter to see if we were misusing one of the options, and instead got a message saying it's not supported in Saxon-HE.

Attached to this issue is a minimal stylesheet that reproduces the issue. Invoking it with this command:

java -cp <path_to_xml_resolver_4.6.4>:<path_to_saxon_EE_11.5> \
         net.sf.saxon.Transform \
         -xsl:transform-with-EE-feature.xsl \
         -o:file.xml \
         -it \
         -config:<path_to_our_config_and_license>

gives:

Error at xsl:sort on line 9 column 141 of transform-with-EE-feature.xsl:
  XTDE1035  Failed to load collation
  http://www.w3.org/2013/collation/UCA?lang=en;maxVariable=symbol;strength=4;alternate=shifted;fallback=no: Error in UCA Collation URI http://www.w3.org/2013/collation/UCA?lang=en;maxVariable=symbol;strength=4;alternate=shifted;fallback=no: fallback=no is not supported in Saxon-HE
Errors were reported during stylesheet compilation

We currently pull down Saxon-EE from your new Maven repo and XML Resolver from Maven central.


Files

transform-with-EE-feature.xsl (550 Bytes) transform-with-EE-feature.xsl Trevor Lawrence, 2023-08-23 03:22

Please register to edit this issue

Also available in: Atom PDF