for $el at $i in doc("/Users/julie/Documents/projet_encadre/BAO3/fixed/corpus-titre-description-fixed3246.xml")//item/descendant::element let $a := $el/data[@type='type'] let $n := $el/following-sibling::element[1]/data[@type='type'] let $x := $el/following-sibling::element[2]/data[@type='type'] let $y := $el/following-sibling::element[3]/data[@type='type'] where $a/text()="NOM" and $n/text()="PRP" and $x/text()="NOM" and $y/text()="PRP" let $na := string-join(($el/data[@type='string'],$el/following-sibling::element[1]/data[@type='string'],$el/following-sibling::element[2]/data[@type='string'],$el/following-sibling::element[3]/data[@type='string']), " ") return $na