Commit ffda7db8 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

refine expression

parent fcbd4244
......@@ -639,7 +639,7 @@ as element(xhtml:span) {
attribute class {
'mod',
$node/@type,
if($node/@rend) then "mod" || replace($node/@rend, ";", "") => repalce(":", "_") => replace(" ", " mod") else (),
if($node/@rend) then "mod" || replace($node/@rend, ";", "") => replace(":", "_") => replace(" ", " mod") else (),
if(local:modTest($node)) then 'addSesquipedalian' else ()
},
if($node/@style and not($node/@seq)) then $node/@style else (),
......@@ -1392,8 +1392,8 @@ as item()* {
for $mod in $allModBefore
return
("modSeq" || string($mod/@seq), transfo:segStyle($mod))
let $styleToken := tokenize($styleSource)
let $style := if(index-of($styleToken, "solid")[2]) then (distinct-values($styleToken)[.!="solid"], "double") else $styleToken
let $styleToken := string-join($styleSource, " ") => tokenize()
let $style := if(count($styleToken[. eq "solid"]) gt 1) then (distinct-values($styleToken)[. ne "solid"], "double") else $styleToken
return
$style
let $handShiftNewRef := $n/preceding::tei:handShift[@new][1]/substring-after(@new, '#')
......
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