Project

Profile

Help

Support #6559

closed

Collation with caseFirst=upper doesn't appear to work

Added by Tim Grantham 15 days ago. Updated 15 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2024-10-10
Due date:
% Done:

0%

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

Description

Here is the code that I'm using to sort glossary terms:

<xsl:for-each select="current-group()">
      <xsl:sort select="*[contains(@class, ' glossentry/glossterm ')]" collation="http://www.w3.org/2013/collation/UCA?lang=en-US;strength=tertiary;caseFirst=upper"/>
      <xsl:apply-templates select="." mode="processTopic"/>
</xsl:for-each>

However, I'm still getting the two terms "association" and "Association" getting sorted with lower-case first.

Am I doing something wrong?

I'm using Saxon-HE-9.9.1-7.

Thanks, Tim.


Files

clipboard-202410101330-swmt6.png (15.6 KB) clipboard-202410101330-swmt6.png Tim Grantham, 2024-10-10 19:30
Actions #1

Updated by John Lumley 15 days ago

https://www.saxonica.com/documentation12/index.html#!localization/unicode-collation-algorithm Suggests that with HE you won’t be using UCA, and reverting to the JDK collation

Sent from my iPad

On 10 Oct 2024, at 18:36, Saxonica Developer Community wrote:



Actions #2

Updated by Tim Grantham 15 days ago

I retested with Saxon-HE 12.3 and it worked correctly. This item can be closed.

Actions #3

Updated by Michael Kay 15 days ago

  • Tracker changed from Bug to Support
  • Status changed from New to Closed

Thanks, noted.

Please register to edit this issue

Also available in: Atom PDF