Skip to content

Commit

Permalink
folia2html: fix in translating t-str to css classes
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Feb 19, 2021
1 parent 3034779 commit 66778eb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions foliatools/folia2html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -602,11 +602,17 @@

<xsl:template match="folia:t-str">
<xsl:choose>
<xsl:when test="@xlink:href">
<xsl:when test="@xlink:href and @class">
<a href="{@xlink:href}"><span class="str_{@class}"><xsl:apply-templates /></span></a>
</xsl:when>
<xsl:otherwise>
<xsl:when test="@xlink:href">
<a href="{@xlink:href}"><span class="str"><xsl:apply-templates /></span></a>
</xsl:when>
<xsl:when test="@class">
<span class="str_{@class}"><xsl:apply-templates /></span>
</xsl:when>
<xsl:otherwise>
<span class="str"><xsl:apply-templates /></span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Expand Down

0 comments on commit 66778eb

Please sign in to comment.