[Bug 15044] [XQuery30] group by variables with associated expressions

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15044

--- Comment #1 from Jonathan Robie <jonathan.robie@gmail.com> 2011-12-06 16:19:23 UTC ---
I believe the description is correct in the spec, but the example is wrong.

So I would keep this definition:

<quote>
[Definition: The atomized value of a grouping variable is called a grouping
key.] For each pre-grouping tuple, the grouping keys are computed by evaluating
the expression in the GroupingSpec and atomizing the result. If the
GroupingSpec does not contain an ExprSingle, an implicit expression is created,
consisting of a variable reference with the same name as the grouping variable.
</quote>

And replace my example with this excerpt from the original proposal:

<quote>
For example, the clause

group by $g1, $g2 := $expr1, $g3 := $expr2 collation "Spanish"

is semantically equivalent to the following sequence of clauses:

let $g2 := $expr1
let $g3 := $expr2
group by $g1, $g2, $g3 collation "Spanish"
</quote>

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 6 December 2011 16:19:29 UTC