arr=35 35 arr.35 xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $lemmata := $context//lemma[(geo//arr/@ref = 'arr.35')] return <result lem='{count($lemmata)}' atts='{count($lemmata/following-sibling::att)}' shown='{$howmany}'> { for $i in 1 to min(($howmany, count($lemmata))) let $lem := $lemmata[$i] order by $lem/vorm return <entry> {$lem} {$lem/following-sibling::att} </entry> } </result> Champtoceaux Champtoceaux Sellis (652-53) copie 10e Xr 2750-65, 83 v° Sellis (652-53) copie 13e I SMc n° 3 Sellis 1049 I SM 9