Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
bc9f9e60
Commit
bc9f9e60
authored
Jan 10, 2019
by
mrodzis
🌿
Browse files
Fix bug with node context (occured in processing C5)
parent
369661dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/tei2teisimple.xqm
View file @
bc9f9e60
...
...
@@ -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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment