for $p in doc('people2.xml')/people/person where $p/@id='2' return {$p/name/text()}