fds=396 396 fds.396 xquery version '3.0'; let $context := doc($db:context) let $howmany := 1000 let $atts := $context//att[(bron/descendant::*/@fonds = 'fds.396')] 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> Roermond Roermond Rura > Roer + munþjan- m. resp. gamunþja- n. "monding". Ruremunde 1225 Zw Hu 1 Schmitthausen Kellen Smithusen 1225 Zw Hu 1