Skip to content

Commit

Permalink
only process child elements (no other (whitespace) nodes) of `tei:sub…
Browse files Browse the repository at this point in the history
…st` when outputting plain text
  • Loading branch information
peterstadler committed Aug 28, 2017
1 parent 5623a3c commit a9925f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/wega-util.xqm
Expand Up @@ -369,6 +369,7 @@ declare function wega-util:txtFromTEI($nodes as node()*) as xs:string* {
if($node/@cert) then ($node/child::node() ! wega-util:txtFromTEI(.), '(?)')
else $node/child::node() ! wega-util:txtFromTEI(.)
case element(tei:del) return ()
case element(tei:subst) return $node/child::element() ! wega-util:txtFromTEI(.)
case element(tei:note) return ()
case element(tei:lb) return
if($node[@type='inWord']) then ()
Expand Down

0 comments on commit a9925f6

Please sign in to comment.