Commit 8ed96f3e authored by MRodz's avatar MRodz
Browse files

Add first draft for transforming tei:handshift to tei:milestone

parent 78df78d1
......@@ -791,20 +791,12 @@ declare function fontaneSimple:enhance-handshift($node as element(tei:handShift)
as element(tei:handShift) {
let $prev-hand := $node/preceding::tei:handShift[@new][1]
element tei:handShift {
if(not($node/@new)) then
attribute new {$prev-hand/@new}
if(not($node/@script)) then
attribute script {""}
if(not($node/@medium)) then
attribute medium {""}
element tei:milestone {
attribute type {"handshift"},
attribute subtype {if($node/@new) then $node/@new else $prev-hand/@new},
attribute rend {concat("script(", (if($node/@script) then $node/@script else ""), ") ",
"medium(", (if($node/@medium) then $node/@medium else ""), ")")},
$node/(@* except (@new, @medium, @script))
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
Supports Markdown
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