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 11759 - [XQuery30UC] ordering the query in "Windowing" Q9
Summary: [XQuery30UC] ordering the query in "Windowing" Q9
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 Use Cases (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 17:30 UTC by Andrew Eisenberg
Modified: 2011-03-30 16:31 UTC (History)
0 users

See Also:


Attachments

Description Andrew Eisenberg 2011-01-14 17:30:05 UTC
This query contains "group by $person" and the expected result is

<result>
  <working-time>
    <person>Barbara</person>
    <time>PT3H</time>
  </working-time>
  <working-time>
    <person>Anton</person>
    <time>PT9H30M</time>
  </working-time>
  <working-time>
    <person>Clara</person>
    <time>PT5H15M</time>
  </working-time>
</result>


At some point we will want to add the use cases to the XQuery 3.0 test suite.

I suggest adding "order by $person" after the group by and changing the result to:

<result>
  <working-time>
    <person>Anton</person>
    <time>PT9H30M</time>
  </working-time>
  <working-time>
    <person>Barbara</person>
    <time>PT3H</time>
  </working-time>
  <working-time>
    <person>Clara</person>
    <time>PT5H15M</time>
  </working-time>
</result>
Comment 1 Jonathan Robie 2011-03-01 17:39:38 UTC
This is now fixed in the XML source.