summaryrefslogtreecommitdiff
path: root/convert.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'convert.xsl')
-rw-r--r--convert.xsl12
1 files changed, 10 insertions, 2 deletions
diff --git a/convert.xsl b/convert.xsl
index 89f0d42..a2f7d2d 100644
--- a/convert.xsl
+++ b/convert.xsl
@@ -30,6 +30,8 @@
<xsl:template match="text()" mode="copy-with-notes">
<xsl:if test="string-length(normalize-space(.)) > 0">
+ <!-- FIXME: missing space between style tags -->
+ <!--<xsl:if test="string-length(normalize-space(.)) > 0 or (not(parent/child::*[1]=.) and not(parent/child::*[last()]=.))">-->
<xsl:value-of select="." />
</xsl:if>
</xsl:template>
@@ -40,6 +42,12 @@
</style>
</xsl:template>
+ <xsl:template match="strong" mode="copy-with-notes">
+ <style fs="bold">
+ <xsl:value-of select="." />
+ </style>
+ </xsl:template>
+
<xsl:template match="br" mode="copy-with-notes">
<br art="x-nl" />
</xsl:template>
@@ -70,7 +78,7 @@
<xsl:apply-templates select="following-sibling::*[1]" mode="copy-until-next-verse" />
</xsl:template>
<xsl:template name="copy-with-notes">
- <xsl:apply-templates select="text()|span[@class='fussnote']|em|br" mode="copy-with-notes" />
+ <xsl:apply-templates select="text()|span[@class='fussnote']|em|strong|br" mode="copy-with-notes" />
<xsl:call-template name="copy-until-next-verse" />
</xsl:template>
@@ -103,7 +111,7 @@
<xsl:template match="div[@class='annotation']" mode="conv"/>
<xsl:template match="div[@class='lineBreak']" mode="conv"/>
- <xsl:template match="br|em" mode="conv"/>
+ <xsl:template match="br|em|strong" mode="conv"/>
<xsl:template match="p" mode="conv"/>
<xsl:template match="*" mode="conv">