Commit bc9f9e60 authored by mrodzis's avatar mrodzis 🌎
Browse files

Fix bug with node context (occured in processing C5)

parent 369661dd
......@@ -707,6 +707,7 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
fontaneSimple:copy-element($node, $uri)
case element(tei:rs) return
let $bla := util:log-system-out($node)
let $index-type := substring-before($node/@ref, ":")
return
(: ignore tei:rs elements that are empty after presorting. this
......@@ -719,8 +720,10 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
fontaneSimple:transform($node/node(), $uri)
},
if(not($node//tei:abbr/text()[ends-with(., ":")]
or ($node//text()[last()][ends-with(., "-")] or$node/following-sibling::*[1][self::tei:rs])
or $node/following::node()[1][self::text()][starts-with(., "-") or starts-with(., ".")])) then
or ($node//text()[last()][ends-with(., "-")] or $node/following-sibling::*[1][self::tei:rs])
(: or $node/following::node()[1][self::text()][starts-with(., "-") or starts-with(., ".")]):)
or $node/following-sibling::node()[1][starts-with(., "-") or starts-with(., ".")])
) then
text{" "}
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