fds=126 126 fds.126 xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $atts := $context//att[(bron/descendant::*/@fonds = 'fds.126')] return <result lem='{count($atts/preceding-sibling::lemma)}' atts='{count($atts)}' shown='{$howmany}'> { for $i in 1 to min(($howmany, count($atts))) let $att := $atts[$i] group by $lem := $att/preceding-sibling::lemma order by $lem/vorm return <entry> {$lem} {$att intersect $atts} </entry> } </result> Asten Asten Hastene 1221 Db P 2 Hastenen 1221 Db P 2 Kuik Kuik Het is inderdaad bij Kuik dat de Maas, na eerst in noordelijke richting te zijn gevloeid, zich wendt naar het westen Cuc 1221 Db P 2 Postel Retie Postula 1221 Db P 2