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 6243 - [XQuery11UC] windowing use case Q8: wrong expected result
Summary: [XQuery11UC] windowing use case Q8: wrong expected result
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 Use Cases (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Tim Kraska
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-19 23:38 UTC by Xavier Franc
Modified: 2009-02-17 15:41 UTC (History)
1 user (show)

See Also:


Attachments

Description Xavier Franc 2008-11-19 23:38:59 UTC
Too many items. Should be:

<result>
    <working-time>
        <person>Anton</person>
        <time>PT4H30M</time>
    </working-time>
    <working-time>
        <person>Barbara</person>
        <time>PT3H</time>
    </working-time>
    <working-time>
        <person>Clara</person>
        <time>PT1H</time>
    </working-time>
    <working-time>
        <person>Anton</person>
        <time>PT5H</time>
    </working-time>
    <working-time>
        <person>Clara</person>
        <time>PT4H15M</time>
    </working-time>
</result>
Comment 1 Tim Kraska 2009-02-17 15:41:07 UTC
I changed the input data to address query Q13 to
<?xml version="1.0" encoding="UTF-8"?>
<stream xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="person_events.xsd">
  <event time="2006-01-01T01:00:00-00:00"/>
  <event time="2006-01-01T10:30:00-00:00">
    <person>Anton</person>
    <direction>in</direction>
  </event>
  <event time="2006-01-01T11:00:00-00:00">
    <person>Barbara</person>
    <direction>in</direction>
  </event>
  <event time="2006-01-01T11:15:00-00:00">
    <person>Clara</person>
    <direction>in</direction>
  </event>
  <event time="2006-01-01T12:15:00-00:00">
    <person>Clara</person>
    <direction>out</direction>
  </event>
  <event time="2006-01-01T14:00:00-00:00">
    <person>Barbara</person>
    <direction>out</direction>
  </event>
  <event time="2006-01-01T15:00:00-00:00">
    <person>Anton</person>
    <direction>out</direction>
  </event>
  <event time="2006-01-01T23:00:00-00:00"/>
  <event time="2006-01-02T01:00:00-00:00"/>
  <event time="2006-01-02T11:00:00-00:00">
    <person>Anton</person>
    <direction>in</direction>
  </event>
  <event time="2006-01-02T12:00:00-00:00">
    <person>Clara</person>
    <direction>in</direction>
  </event>
  <event time="2006-01-02T12:10:00-00:00">
    <person>Clara</person>
    <direction>out</direction>
  </event>
  <event time="2006-01-02T12:15:00-00:00">
    <person>Clara</person>
    <direction>in</direction>
  </event>
  <event time="2006-01-02T12:20:00-00:00">
    <person>Clara</person>
    <direction>out</direction>
  </event>
    <event time="2006-01-02T12:25:00-00:00">
    <person>Clara</person>
    <direction>in</direction>
  </event>
  <event time="2006-01-02T12:40:00-00:00">
    <person>Clara</person>
    <direction>out</direction>
  </event>
  <event time="2006-01-02T14:00:00-00:00">
    <person>Clara</person>
    <direction>in</direction>
  </event>
  <event time="2006-01-02T16:00:00-00:00">
    <person>Anton</person>
    <direction>out</direction>
  </event>
  <event time="2006-01-02T16:15:00-00:00">
    <person>Clara</person>
    <direction>out</direction>
  </event>
  <event time="2006-01-02T23:00:00-00:00"/>
</stream>



Hence, the result is now:

<result>
        <working-time>
                <person>Anton</person>
                <time>PT4H30M</time>
        </working-time>
        <working-time>
                <person>Barbara</person>
                <time>PT3H</time>
        </working-time>
        <working-time>
                <person>Clara</person>
                <time>PT1H</time>
        </working-time>
        <working-time>
                <person>Anton</person>
                <time>PT5H</time>
        </working-time>
        <working-time>
                <person>Clara</person>
                <time>PT10M</time>
        </working-time>
        <working-time>
                <person>Clara</person>
                <time>PT5M</time>
        </working-time>
        <working-time>
                <person>Clara</person>
                <time>PT15M</time>
        </working-time>
        <working-time>
                <person>Clara</person>
                <time>PT4H15M</time>
        </working-time>
</result>

I'm marking this bug FIXED.  Xaviar, if you agree with the solution, please mark
it CLOSED.