[Bug 2916] [XSLT] Which key is the grouping key for the group

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


mike@saxonica.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED




------- Comment #2 from mike@saxonica.com  2006-03-13 11:10 -------
The changed text to implement this decision is as follows:

In the definition of grouping key (immediately after XTSE1090) change: "The
grouping key is the value of the expression contained in the group-by attribute
or group-adjacent attribute." to "The grouping keys are the items in the
sequence obtained by evaluating the expression contained in the group-by
attribute or group-adjacent attribute, atomizing the result, and then casting
any xs:untypedAtomic values to xs:string."

In 14.2 (current-grouping-key function) add after the third para.

Although the grouping keys of all items in the group are by definition equal,
they are not necessarily identical. For example, one might be an xs:float while
another is an xs:decimal. The current-grouping-key() function is defined to
return the grouping key of the *initial item* in the group, after atomization
and casting of xs:untypedAtomic to xs:string.

Received on Monday, 13 March 2006 11:10:51 UTC