examples/xmlpatterns/recipes/files/preparationLessThan30.xq
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:43:09 +0200
branchRCL_3
changeset 6 dee5afe5301f
parent 0 1918ee327afb
permissions -rw-r--r--
Revision: 201008 Kit: 201010

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