- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 22 Feb 2006 18:16:37 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2916
Summary: [XSLT] Which key is the grouping key for the group
Product: XPath / XQuery / XSLT
Version: Candidate Recommendation
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: XSLT 2.0
AssignedTo: mike@saxonica.com
ReportedBy: joannet@ca.ibm.com
QAContact: public-qt-comments@w3.org
Consider this example,
<xsl:for-each-group select="xs:float(1.0),1.0000000000100000000001,xs:double
(1.00000000001)" group-adjacent=".">
<xsl:value-of select="current-grouping-key() instance of xs:float"/>
</xsl:for-each-group>
The grouping keys for each adjacent pair of items are equal using the eq
operator, so all the values are in the same group. However, the description
of the group-adjacent attribute does not make it clear which of the three
grouping keys is the grouping key for the group.
The description of the group-by attribute contains an algorithm that would
make the key of the initial item to be the grouping key of its group.
I suggest adding explicit text in the description of the group-adjacent
attribute (and maybe even the group-by attribute) that the key of the initial
item should be the group key of its group.
Received on Wednesday, 22 February 2006 18:16:50 UTC