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

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

--- Comment #5 from Michael Dyck <jmdyck@ibiblio.org> 2011-12-12 00:43:11 UTC ---
(In reply to comment #4)
> 
> How's this:
> 
> The following clauses in FLWOR expressions bind values to variables: for, let,
> window, count, and group by. The binding of variables for for, let, and count
> is governed by the following rules (the binding of variables in window clauses
> is discussed in 3.10.4 Window Clause, the binding of variables in group by
> clauses is discussed in 3.10.7 Group By Clause):

That isn't enough to answer my questions. (see below)

> I think the governing principle here is this: 
> 
> <quote>
> A given variable may be bound more than once in a FLWOR expression, or even
> within one clause of a FLWOR expression. In such a case, each new binding
> occludes the previous one, which becomes inaccessible in the remainder of the
> FLWOR expression.
> </quote>

That would be fine as a governing principle, but it doesn't yet apply to 'group
by' clauses. You have to change the preamble to make it apply.

Specifically, in the second sentence change:
    "for, let, and count"
to
    "for, let, count, and group by"

and delete "the binding of variables in group by clauses is discussed in 3.10.7
Group By Clause".

-- 
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 Monday, 12 December 2011 00:45:19 UTC