gem=Aartrijke Aartrijke Aartrijke xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $lemmata := $context//lemma[geo//gem[matches(.,'^Aartrijke$','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> Aartrijke Aartrijke Artiriacum (893-903) kop. 13e Bv G 1984, 36 r° Artrica 1089 ed. DB, p. 298 Artrica 1110 E D Artrica 1130 B 6642 Artrica 1135 E D Artrica 1146 E D