/people/person nebo //person
/people/person
//person
//person[@id=1]/name nebo //name[parent::*/@id=1]
//person[@id=1]/name
//name[parent::*/@id=1]
//person[number(@id)=$a] nebo //person[@id=$a]
//person[number(@id)=$a]
//person[@id=$a]
{ for $p in //person[@id=$a] return $p } nebo { for $p in //person where $p/@id=$a return $p }
{ for $p in //person[@id=$a] return $p }
{ for $p in //person where $p/@id=$a return $p }