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

refine expression

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