summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns/recipes/files/mushroomSoup.xq
diff options
context:
space:
mode:
Diffstat (limited to 'examples/xmlpatterns/recipes/files/mushroomSoup.xq')
-rw-r--r--examples/xmlpatterns/recipes/files/mushroomSoup.xq5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/xmlpatterns/recipes/files/mushroomSoup.xq b/examples/xmlpatterns/recipes/files/mushroomSoup.xq
new file mode 100644
index 00000000..b1fee349
--- /dev/null
+++ b/examples/xmlpatterns/recipes/files/mushroomSoup.xq
@@ -0,0 +1,5 @@
+(: All ingredients for Mushroom Soup. :)
+declare variable $inputDocument external;
+
+doc($inputDocument)/cookbook/recipe[@xml:id = "MushroomSoup"]/ingredient/
+<p>{@name, @quantity}</p>