This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3423 - [XSLT2.0] 14.3: reference target for "that item" in context description for 'group-by' (editorial)
Summary: [XSLT2.0] 14.3: reference target for "that item" in context description for '...
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Candidate Recommendation
Hardware: Macintosh All
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-04 12:14 UTC by Christian Roth
Modified: 2006-08-16 18:39 UTC (History)
0 users

See Also:


Attachments

Description Christian Roth 2006-07-04 12:14:03 UTC
14.3 The xsl:for-each-group Element, after definition of 'grouping keys':

"The expression contained in the group-by or group-adjacent attribute is evaluated with that item as the context item, with its position in population order as the context position, and with the size of the population as the context size."

As a non-native speaker, I'm having difficulties determining what the "that" in "...that item..." references. I guess it will be the "...each item in the population." of the preceding definition, but to me, it isn't absolutely clear.

Would the following re-formulation of the sentence be factually correct:

"The expression contained in the group-by or group-adjacent attribute is evaluated for an item in the population with that item as the context item, with its position in population order as the context position, and with the size of the population as the context size."

?

-Christian
Comment 1 Michael Kay 2006-08-16 18:38:48 UTC
In fact the "that item" refers back to "for each item in the population" in the previous paragraph, but the text in between has  grown in length as a result of a clarification (sic) added in the latest draft. I think the solution is to re-establish context at the start of the new paragraph: change "The expression contained in..." to read "When calculating the grouping keys for an item in the population, the expression contained in..."

In the hope that this further clarification solves the problem, I am marking the bug fixed and closed. Please reopen it if you feel the urge.