~paul-lucas/zorba/bug-932374

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/windowing/sliding07.xq

  • Committer: Paul J. Lucas
  • Date: 2012-09-21 20:26:47 UTC
  • mfrom: (10819.2.235 zorba)
  • Revision ID: paul@lucasmail.org-20120921202647-fy9n4jduhrnljrnb
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
declare namespace w = "foo:bar";
2
2
 
3
 
for sliding window $"foo:bar":w in (1 to 10)
4
 
start $"foo:bar":s at $"foo:bar":x previous $"foo:bar":sp next $"foo:bar":sn when true()
5
 
end $"foo:bar":e at $"foo:bar":y previous $"foo:bar":ep next $"foo:bar":en when false() 
 
3
for sliding window $Q{foo:bar}w in (1 to 10)
 
4
start $Q{foo:bar}s at $Q{foo:bar}x previous $Q{foo:bar}sp next $Q{foo:bar}sn when true()
 
5
end $Q{foo:bar}e at $Q{foo:bar}y previous $Q{foo:bar}ep next $Q{foo:bar}en when false() 
6
6
return <window>{
7
7
  string-join (
8
8
    for $w:w in ($w:w, $w:s, $w:x, $w:sp, $w:sn, $w:e, $w:y, $w:ep, $w:en)