for $x in //node[(@neclass="LOC" and not(@rel="mwp")) or (@cat="mwu" and node[@pt="spec" and @neclass="LOC"])]
return (
{replace(data(/alpino_ds/sentence/@sentid), "\.[^.]*$", "")}
{
for $i in data(/alpino_ds/metadata/meta[@name="tag"]/@value)
return {$i}
}
{ data($x//@lemma) }
, '
' )
(:
{ data(/alpino_ds/sentence/@sentid) }
{ replace(data(/alpino_ds/sentence/@sentid), "\.[^.]*$", "") }
:)