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 6241 - [XQuery11UC] windowing use case Q2: wrong "at"
Summary: [XQuery11UC] windowing use case Q2: wrong "at"
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:07 UTC by Xavier Franc
Modified: 2010-11-30 13:20 UTC (History)
2 users (show)

See Also:


Attachments

Description Xavier Franc 2008-11-19 23:07:59 UTC
The 'end when' condition in Q2 is incorrect and leads to typing errors:

  end at $e when $e[self::h2] 

Clearly the keyword "at" should be replaced by "next"
so that the window contains elements strictly between two h2:

  for tumbling window $w in $seq/body/* 
    start previous $s when $s[self::h2]  
    end next $e when $e[self::h2] 
  return ...
Comment 1 Tim Kraska 2009-02-17 15:34:24 UTC
I agree and adopted the current working draft accordingly.
Comment 2 Jonathan Robie 2010-11-30 13:20:47 UTC
Solution is visible in internal draft here:

http://www.w3.org/XML/Group/qtspecs/use-cases/xquery-30/html/Overview.html#windowing_head_para