gem=Leez Leez Leez xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $lemmata := $context//lemma[geo//gem[matches(.,'^Leez$','i')]] 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> Leez Grand- Leez Les 805 faux 10e Pa K 7/17 Latium 868 cop. 18e M 34, p. 36 Lecem acc. 980 Pa K 17/4 Laice 1034 faux milieu 12e I J Leis 1125 P Ln 2588/4 Lez 1137 I F Lez 1147 X E 4607/8 Lez 1149 N Gs 1 Lez 1155 N Ff 1 de Lacio 1139 I F Laiz 1140 I F Laiz 1153 cop. fin 13e N Ff 3, 113 r° Laiz 1173 cop. fin 17e Be XV 138 r°