summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns/recipes/files/liquidIngredientsInSoup.xq
blob: 3baecd8df334131036dc3e4422d29b9171abf0ba (plain)
1
2
3
4
5
(: 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>