Commit 65433aeb authored by mrodzis's avatar mrodzis 🌎 Committed by Mathias Goebel
Browse files

Commentary for sketches encompassing two pages

parent 7e028a9a
...@@ -218,9 +218,20 @@ as item()* {( ...@@ -218,9 +218,20 @@ as item()* {(
if( config:get("sade.develop") = "true" ) if( config:get("sade.develop") = "true" )
then code:main($node) then code:main($node)
else code:main($node, false(), "hljs-", true()), else code:main($node, false(), "hljs-", true()),
(: for normal tei:surfaces :)
for $n in $node/following-sibling::tei:note for $n in $node/following-sibling::tei:note
where $n >> $node and $n << ($node/following-sibling::tei:surface)[1] where $n >> $node and $n << ($node/following-sibling::tei:surface)[1]
return code:main($n) return code:main($n),
(: for tei:surfaces that are part of a "Doppelseitenansicht".
in this case an associated tei:note is encoded after the first/left
tei:surface but should also be displayed on the second/right one. :)
if($node/@prev and $node/preceding-sibling::*[1][self::tei:note]) then
for $n in $node/preceding-sibling::tei:note
where $n >> $node/preceding-sibling::tei:surface[1]
return
code:main($n)
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