1 declare namespace fun = 'have.more.fun';
3 declare function fun:closure($input as node()*, $result as node()*) as node()*
5 let $current := $input/seller/id(@person)/watches/watch/id(@open_auction)
6 let $new := $current except $result
7 let $all := ($result,$new)
11 then ($new, fun:closure($new,$all))
15 doc()/site/open_auctions/open_auction[position() <= 5]/fun:closure(.,())/interval