summaryrefslogtreecommitdiff
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 0000000..b1fee34
--- /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>