summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns/recipes/files/preparationTimes.xq
diff options
context:
space:
mode:
Diffstat (limited to 'examples/xmlpatterns/recipes/files/preparationTimes.xq')
-rw-r--r--examples/xmlpatterns/recipes/files/preparationTimes.xq5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/xmlpatterns/recipes/files/preparationTimes.xq b/examples/xmlpatterns/recipes/files/preparationTimes.xq
new file mode 100644
index 0000000..cb4217f
--- /dev/null
+++ b/examples/xmlpatterns/recipes/files/preparationTimes.xq
@@ -0,0 +1,5 @@
+(: All recipes with preparation times. :)
+declare variable $inputDocument external;
+
+doc($inputDocument)/cookbook/recipe/
+<recipe title="{title}" time="{time/@quantity} {time/@unit}"/>