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 6242 - [XQuery11UC] windowing use case Q3: spurious "at"
Summary: [XQuery11UC] windowing use case Q3: spurious "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:13 UTC by Xavier Franc
Modified: 2009-02-17 15:38 UTC (History)
1 user (show)

See Also:


Attachments

Description Xavier Franc 2008-11-19 23:13:40 UTC
The "at" declarations do not make sense and lead to type errors,
as $x and $y are bound to integer values:

  start at $x when $x[self::dt]
  end at $y next $z when $y[self::dd] and $z[self::dt]

The correct query seems to be:

for tumbling window $w in $seq/doc/*
  start $x when $x[self::dt]
  end $y next $z when $y[self::dd] and $z[self::dt]
return ...
Comment 1 Tim Kraska 2009-02-17 15:38:12 UTC
I agree and I have changed the current working draft accordingly.