module namespace inflmenu="http://www.risten.no/shared/inflmenu";
declare namespace util="http://exist-db.org/xquery/util";
declare namespace xmldb="http://exist-db.org/xquery/xmldb";
(: Input: //infl/@lexc:)
declare function inflmenu:get-inflections() as element()
{
let $inflections := distinct-values(doc("/db/ordbase/terms/propnouns/terms-sme.xml")//infl/@lexc)
return
{
for $infl in $inflections
order by $infl
return
}
};
(:
In the XSL that uses this input:
should be transformed to HTML:
:)