now include xpath in index

This commit is contained in:
Oleg Belyaev 2025-03-22 18:32:23 +03:00
parent d0da75869e
commit 043b9e0a87

View file

@ -18,7 +18,7 @@ as map(xs:string, map(xs:string, map(xs:string, item()*)))* {
for $w in $ment/tei:w/text()
return map{$w : map{$id :
map {'gloss': local:get-gloss($ment),
'node': db:node-id($ment) }
'node': path($ment) }
}
}
};
@ -98,7 +98,7 @@ return
{
for $ref in $words($w)($e)
return
<ref node-id="{$ref('node')}">
<ref path="{$ref('node')}">
{
for $g in $ref('gloss')
return