Skip to content

Commit

Permalink
with f:st, rend attributes like vertical could get lost
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Sep 14, 2018
1 parent 32426a8 commit f6d4fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/xproc/update-tei-sources.xsl
Expand Up @@ -36,7 +36,8 @@

<xsl:template match="f:st">
<mod>
<xsl:attribute name="rend" select="if (@rend = 'erase') then 'erase' else 'strikethrough'"/>
<xsl:variable name="rend-tokens" select="tokenize(@rend, '\s+')" as="xs:string*"/>
<xsl:attribute name="rend" select="string-join(($rend-tokens, if (not($rend-tokens = 'erase')) then 'strikethrough' else ()), ' ')"/>
<xsl:apply-templates select="@* except @rend, node()"/>
</mod>
</xsl:template>
Expand Down

0 comments on commit f6d4fe1

Please sign in to comment.