Project

Profile

Help

Bug #5119

closed

Documentation on break-when showing use of current-group() seems wrong

Added by Martin Honnen over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Documentation
Sprint/Milestone:
-
Start date:
2021-10-08
Due date:
% Done:

100%

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

Description

https://www.saxonica.com/html/documentation11/v4extensions/xslt-syntax-extensions/break-when.html says

The break-when attribute can be specified on xsl:for-each-group in place of group-by, group-adjacent, group-starting-with, or group-ending-with. This allows a new group to be started conditionally based on the contents of the current group so far. For example, break-when="@date lt current-group()[last()]/@date causes a new group to be started whenever the date on the current item is earlier than the date on the last item in the previous group.

The spec and the more detailed section on xsl:for-each-group suggest that accessing the current group in the break-when expression works using the variable reference $group, but not using current-group().

A test to use current-group() in break-when with SaxonCS EE 11 also gives an error "XTDE1061 There is no current group" so introduction example in the documentation section seems wrong.

Actions #1

Updated by Michael Kay over 2 years ago

  • Status changed from New to Resolved
  • Fix Committed on Branch trunk added
  • Platforms .NET added

Thanks, fixed.

Actions #2

Updated by Debbie Lockett over 2 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Documentation updated online.

Please register to edit this issue

Also available in: Atom PDF