gem=Werne%20an%20der%20Lippe
Werne an der Lippe
Werne
an
der
Lippe
xquery version '3.0';
let $context := doc($db:context)
let $howmany := 1000
let $lemmata := $context//lemma[(geo//gem[matches(.,'^Werne$','i')] and geo//gem[matches(.,'^an$','i')] and geo//gem[matches(.,'^der$','i')] and geo//gem[matches(.,'^Lippe$','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>