Commit e9d6c600 authored by mrodzis's avatar mrodzis 🌿
Browse files

Exclude underlined tei:seg from presorting

parent b7e02afa
......@@ -43,9 +43,11 @@ declare function presort:sort($nodes as node()*) as node()* {
default return
if($node/@next and not($node/@prev)) then
else if($node/@prev or $node/@next) then
if(($node/@next and not($node/@prev))
and not(matches($node/@style, "underline"))) then
else if(($node/@prev or $node/@next)
and not(matches($node/@style, "underline"))) then
let $prev-node := presort:find-corresp-node($node, "prev")
let $next-node := presort:find-corresp-node($node, "next")
......@@ -111,7 +113,8 @@ declare function presort:exclude-copied($node as node()) as element(tei:rs) {
let $rs-children := $node/node()
let $processed-children :=
for $child in $rs-children return
if($child/@next) then
and not(matches($child/@style, "underline"))) then
else if($child/@prev) then
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