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

|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# 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>