[Bug 15728] [XQ30] Scope of variables defined in group-by

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

Jonathan Robie <jonathan.robie@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Jonathan Robie <jonathan.robie@gmail.com> 2012-02-29 14:54:13 UTC ---
In yesterday's telcon, we agreed that:

1. This sentence does not apply to Group By:

<quote>The scope of a bound variable includes all subexpressions of the
containing FLWOR that appear after the variable binding.</quote>

Grouping variables, like Windowing variables, have their own rules.

2. All bindings in group by expressions are computed before the group by clause
is evaluated and are based on pre-grouping tuples.

3. Variables bound in one grouping spec in a group by clause can be used in
other grouping specs, but these variables are also based on pre-grouping
values.

4. Pre-grouping values are not implicitly atomized, post-grouping values are
implicitly atomized.

-- 
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 Wednesday, 29 February 2012 14:54:23 UTC