gem=Lochem Lochem Lochem xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $lemmata := $context//lemma[geo//gem[matches(.,'^Lochem$','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> Hazelberg Lochem Agastaldaburg 1046 kopie midden 12e U B 43, 30 v° Bagastaldaburg lees Hagastaldaburg 1046 kopie 2e kwart 13e U B 43, 69 r° Hagastaldaburg [voorstel van MG voor Bagastaldaburg] 1046 kopie 2e kwart 13e U B 43, 69 r° Hulsink Lochem Hilzinc 1188 kopie of interpol. eind 13e U B 2, 134 r° Lochem Lochem Lochemensis 1059 vals 12e Zu K Lochemensis 1134 Zu K Lochem 1188 kop. eind 13e U B 2, 134 r°