for $el at $i in doc("/Users/julie/Documents/projet_encadre/BAO3/corpus_titre_description-3224.udpipe.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'] where $a/text()='NOM' and $n/text()='KON' and $x/text()='ADJ' let $na := string-join(($el/data[@type='string'],$el/following-sibling::element[1]/data[@type='string'],$el/following-sibling::element[2]/data[@type='string']), " ") return $na