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