summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/patternist/forClause.xq
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/patternist/forClause.xq')
-rw-r--r--doc/src/snippets/patternist/forClause.xq3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/src/snippets/patternist/forClause.xq b/doc/src/snippets/patternist/forClause.xq
new file mode 100644
index 0000000..a412dca
--- /dev/null
+++ b/doc/src/snippets/patternist/forClause.xq
@@ -0,0 +1,3 @@
+for $i in(reverse(1 to 10)),
+ $d in xs:integer(doc("numbers.xml")/numbers/number)
+return ($i + $d)