gem=Mortsel Mortsel Mortsel xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $lemmata := $context//lemma[geo//gem[matches(.,'^Mortsel$','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> Diesegem Mortsel Tisingabeim 866 kop. 18e M 34, p. 14 Thisingheim 868 kop. 18e M 34, p. 37 Mortsel Mortsel Cf. Moorsel Mortensella 1158 kop. 15e M 33, 290 r°