Project

Profile

Help

Support #3763

closed

Strange for-each-group select operation order

Added by Andy Yar about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2018-04-27
Due date:
% Done:

0%

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

Description

Calling a XPath function inside for-each-group's select results in strange results when used with group-starting-with. Tested with Saxon EE 9.7.0.21 and EE 9.8.0.8.

In my use case, I need to pre-sort input data before performing grouping by a for-each-group.

The documentation is a bit confusing regarding the group-starting-with usage, maybe I got the whole idea wrong...


Files

sortForEachGroup.xsl (1.49 KB) sortForEachGroup.xsl Test stylesheet demonstrating the grouping behaviour Andy Yar, 2018-04-27 09:30
sortForEachGroup.xml (250 Bytes) sortForEachGroup.xml Test input mimicking a real data structure Andy Yar, 2018-04-27 09:30

Please register to edit this issue

Also available in: Atom PDF