(: CSC 468 :) (: Winter 2010 :) (: Project Stage 2 :) (: test XPLite queries for a repository containing Present.xml file (: we only include queries that involve attributes here (: 1. retrieve all attributes (: returns 49 attributes /self::*/descendant::*/attribute::* (: 1.a variant /self::*/descendant::*/attribute::attribute() (: 2. get attribute value (: this query should return /self::*/descendant::*/attribute::node()[string()="Group"] (: 3. name node test with attributes /descendant::*/attribute::type (: 4. find the "musicians" /descendant::*/attribute::type[string="musician"] (: 5. Find the name of the band that recorded the album /self::*/descendant::*[attribute::attribute()[string()="Group"]]/attribute::name (: 6. Return from attributes to their parents (: Retrieve the first disk /descendant::*/attribute::number[string()="1"]/parent::disk (: (: AND WE ARE DONE! (: