examples/xmlpatterns/recipes/files/preparationLessThan30.xq
changeset 0 1918ee327afb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/xmlpatterns/recipes/files/preparationLessThan30.xq	Mon Jan 11 14:00:40 2010 +0000
@@ -0,0 +1,9 @@
+(: All recipes taking 10 minutes or less to prepare. :)
+declare variable $inputDocument external;
+
+doc($inputDocument)/cookbook/recipe/time[@unit = "minutes" and xs:integer(@quantity) <= 10]/
+<p>
+    {
+       concat(../title, ' (', @quantity, ' ', @unit, ')')
+    }
+</p>