liquidIngredientsInSoup.xq Example File | Qt XML Patterns 5.4

- Qt 5.4
- Qt XML Patterns
- Recipes Example
- liquidIngredientsInSoup.xq Example File
- Qt 5.4.2 Reference Documentation

# liquidIngredientsInSoup.xq Example File

recipes/files/liquidIngredientsInSoup.xq

    (: All liquid ingredients form Mushroom Soup. :)
    declare variable $inputDocument external;

    doc($inputDocument)/cookbook/recipe[@xml:id = "MushroomSoup"]/ingredient[@unit = "milliliters"]/
    <p>{@name, @quantity, @unit}</p>