MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

mushroomSoup.xq Example File

xmlpatterns/recipes/files/mushroomSoup.xq
 (: All ingredients for Mushroom Soup. :)
 declare variable $inputDocument external;

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