File: preparationLessThan30.xq

package info (click to toggle)
qtxmlpatterns-opensource-src 5.3.2-2~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 17,820 kB
  • sloc: cpp: 90,014; xml: 1,662; ansic: 387; sh: 132; sed: 31; makefile: 20
file content (9 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (17)
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>