mouseover replacement
on tei:ref
we need a good JS replacement for @onmouseover
(: mouseover :)
if(not(contains($node/@target, 'refxpath')) and substring-before(substring-after($node/@target, 'surface[@n'), "']")
= $node/ancestor::tei:surface[last()]/string(@n))
(: productive = $node/ancestor::tei:surface/tei:surface/string(@n)) :)
then attribute onmouseover {
'$("[data-ref='|| substring-after($node/@target, '#') ||'], #'||substring-after($node/@target, '#')||'").toggleClass("highlight")'
} else (),
from tei:zone
if($n/@xml:id and $n/ancestor::tei:TEI//tei:ref[substring-after(@target, '#')=$n/@xml:id])
then
(: edit same line in ref too! :)
attribute onmouseover {'$("[id=ref'|| $n/@xml:id ||'], #'||$n/@xml:id||'").toggleClass("highlight")'}
else (),
Edited by Mathias Goebel