X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=tests%2Fxpath-pt%2Fxquery%2FF5.xql;fp=tests%2Fxpath-pt%2Fxquery%2FF5.xql;h=0000000000000000000000000000000000000000;hb=ea776e2c87cb6731378f1a5922c2efe916fcca53;hp=f5f5df7c963509e49d4c4cfd6225b7e998628713;hpb=7b4efbdf1b9e4e972f2b1d3c3c5c69235f7a964a;p=SXSI%2Fxpathcomp.git diff --git a/tests/xpath-pt/xquery/F5.xql b/tests/xpath-pt/xquery/F5.xql deleted file mode 100644 index f5f5df7..0000000 --- a/tests/xpath-pt/xquery/F5.xql +++ /dev/null @@ -1,15 +0,0 @@ -declare namespace fun = 'have.more.fun'; - -declare function fun:closure($input as node()*, $result as node()*) as node()* -{ - let $current := $input/watches/watch/id(@open_auction)/bidder/personref/id(@person) - let $new := $current except $result - let $all := ($result,$new) - - return - if(exists($new)) - then ($new, fun:closure($new,$all)) - else () -}; - -doc()/site/people/person[position() <= 5]/fun:closure(.,())/name