Qt 4.8: liquidIngredientsInSoup.xq Example File (xmlpatterns/recipes/files/liquidIngredientsInSoup.xq)

Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# liquidIngredientsInSoup.xq Example File

xmlpatterns/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>