← Back to team overview

zorba-coders team mailing list archive

[Merge] lp:~zorba-coders/zorba/cleanup-guestbook.xq into lp:zorba

 

Till Westmann has proposed merging lp:~zorba-coders/zorba/cleanup-guestbook.xq into lp:zorba.

Requested reviews:
  Till Westmann (tillw)
  Ghislain Fourny (gislenius)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/cleanup-guestbook.xq/+merge/110413

remove unnecessary annotations and clean-up indentation
-- 
https://code.launchpad.net/~zorba-coders/zorba/cleanup-guestbook.xq/+merge/110413
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'test/unit/guestbook.xq'
--- test/unit/guestbook.xq	2012-05-03 12:31:51 +0000
+++ test/unit/guestbook.xq	2012-06-14 20:56:22 +0000
@@ -21,10 +21,10 @@
 
 declare namespace ann = "http://www.zorba-xquery.com/annotations";; 
 
-declare %ann:ordered collection guestbook:entries as node()*;
+declare collection guestbook:entries as node()*;
 declare variable $guestbook:entries as xs:QName := xs:QName("guestbook:entries");
 
-declare %ann:sequential function guestbook:list() 
+declare function guestbook:list() 
 {  
   let $entries := dml:collection($guestbook:entries)
   let $num_entries := fn:count($entries)
@@ -38,11 +38,11 @@
 };
 
 declare function guestbook:window() {
- let $x := 1 to 1000
- for tumbling window $w in $x
- start at $s when fn:true()
- end at $e when $e - $s eq 51
- return <window>{ $w }</window>
+  let $x := 1 to 1000
+  for tumbling window $w in $x
+  start at $s when fn:true()
+  end at $e when $e - $s eq 51
+  return <window>{ $w }</window>
 };
 
 


Follow ups