Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
42d294d2
Commit
42d294d2
authored
Jan 09, 2019
by
mrodzis
💪
Browse files
Fix bug in tei:ref processing
parent
4f786357
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/teisimpleprint/tei2teisimple.xqm
View file @
42d294d2
...
...
@@ -81,7 +81,8 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
if($node/ancestor::tei:line
or $node/ancestor::tei:figDesc
or $node/ancestor::tei:desc[@type = "edited_text"]
or $node/ancestor::tei:note[@type = "editorial"]) then
or $node/ancestor::tei:note[@type = "editorial"]
or $node/ancestor::tei:ref[not(matches(@target, "getty") or matches(@target, "xpath"))]) then
if($node/parent::tei:rs and starts-with($node, " ")
and not($node/preceding-sibling::*[1][self::tei:handShift or self::tei:hi])
and simpleHelpers:is-trimming-necessary($node)) then
...
...
@@ -575,9 +576,10 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
fontaneSimple:transform($node/node(), $uri)
else if($node/@xml:id) then
(if($node/@xml:id = "C06_14r_9") then
util:log-system-out($node)
else (),
(
(: if($node/@xml:id = "C06_14r_9") then:)
(: util:log-system-out($node):)
(: else (),:)
element {QName("http://www.tei-c.org/ns/1.0", "seg")} {
$node/@xml:id,
$node/@prev,
...
...
@@ -670,7 +672,8 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
fontaneSimple:copy-element($node, $uri)
case element(tei:ref) return
fontaneSimple:copy-element($node, $uri)
(fontaneSimple:copy-element($node, $uri),
util:log-system-out($node))
case element(tei:space) return
fontaneSimple:copy-element($node, $uri)
...
...
@@ -748,10 +751,10 @@ declare function fontaneSimple:transform($nodes as node()*, $uri as xs:string) a
: @return node() a copy of the current node
:)
declare function fontaneSimple:copy-element($node as node(), $uri as xs:string) as node() {
if($node[self::tei:note]) then
util:log-system-out($node)
else
(),
(:
if($node[self::tei:note]) then
:)
(:
util:log-system-out($node)
:)
(:
else
:)
(:
(),
:)
element {QName("http://www.tei-c.org/ns/1.0", $node/name())}{
$node/(@* except @rend),
if($node/@rend) then
...
...
@@ -952,7 +955,7 @@ as xs:boolean {
declare function fontaneSimple:make-index-infos($node as element(tei:rs),
$index-type as xs:string) as element()* {
let $bla := util:log-system-out($node)
(:
let $bla := util:log-system-out($node)
:)
let $refs := tokenize($node/@ref, " ")
let $no-of-refs := count($refs)
return
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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