Qt 5.11 | Qt XML Patterns | Recipes Example | preparationLessThan30.xq Example File

Qt 5.11.3 Reference Documentation

# preparationLessThan30.xq Example File

recipes/files/preparationLessThan30.xq

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