[Bug 13491] New: Variables in group-by clauses

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13491

           Summary: Variables in group-by clauses
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3.0
        AssignedTo: jonathan.robie@gmail.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


The description of "group-by" states "The name of each grouping variable must
be equal (by the eq operator on expanded QNames) to the name of a bound
variable in the input tuple stream; otherwise a static error is raised
[err:XQST0094]."

But the definition of XQST0094 states "In the group by clause of a FLWOR
expression, it is a static error if the name of a grouping variable is not
equal (by the eq operator on expanded QNames) to the name of a variable that is
bound by a for or let clause that precedes the group by clause."

This leaves it unclear whether it is permissible for the grouping variable to
be one that is bound by a previous count, group-by, or window clause.

(I'm also puzzled by the qualifier "bound" in "bound variable". Is it possible
to have unbound variables in the tuple stream?)

-- 
Configure bugmail: http://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, 1 August 2011 03:00:05 UTC