Commit e4c1faab authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

more concret xpath

parent a8a4d116
......@@ -317,7 +317,7 @@ for $item in $text return
then substring-after($target, '#')
else (),
$page := if($id)
then $text/ancestor::tei:TEI//tei:surface[//@xml:id = $id]/string(@n)
then $text/ancestor::tei:TEI//tei:surface[.//@xml:id = $id]/string(@n)
else tokenize($target, "'")[2],
$doc := request:get-parameter('id', ''),
$hl := if($id) then '#'||$id else (),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment