Bug #5119
closedDocumentation on break-when showing use of current-group() seems wrong
100%
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.
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.
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