examples/xmlpatterns/recipes/files/preparationLessThan30.xq
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Wed, 21 Apr 2010 12:15:23 +0300
branchRCL_3
changeset 13 cc75c76972ee
parent 0 1918ee327afb
permissions -rw-r--r--
a69086a7359b3de9db0823ce58d9aab8b5c369be

(: 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>