for $x in document('v-emps.xml')/employees/employee where $x/firstname = 'Joe' and $x/lastname = 'Doe' return element employee{$x/deptno}