diff -r 000000000000 -r 1918ee327afb examples/xmlpatterns/recipes/files/preparationLessThan30.xq --- /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]/ +
+ { + concat(../title, ' (', @quantity, ' ', @unit, ')') + } +