summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns/recipes/files/preparationLessThan30.xq
blob: d74a4eb937bd272e936f0aa83cab429c1e36ca0d (plain)
1
2
3
4
5
6
7
8
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>