W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2007

[Bug 5295] [XSLT 2.0] xsl:for-each-group: transitivity

From: <bugzilla@wiggum.w3.org>
Date: Tue, 18 Dec 2007 18:45:49 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1J4hRt-0004H9-3V@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5295





------- Comment #1 from mike@saxonica.com  2007-12-18 18:45 -------
The spec states that current-grouping-key() returns the grouping key of the
initial item in a group (that is, the item that is first in population order).
I suggest therefore that we define that grouping is done as if the items are
processed in population order and each successive item is processed as follows:
if its grouping key is equal to that of the initial item in some group, then
the item is added to that group; otherwise the item becomes the initial item in
a new group.

This ensures that (a) each group will have a distinct value for
current-grouping-key(), and (b) every item in a group will have a grouping key
that is equal to the current-grouping-key() for that group. It does not ensure
that X and Y are in the same group if and only if their grouping keys are
equal.
Received on Tuesday, 18 December 2007 18:45:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:22 GMT