allow strofa inside table + fix table border in html/epub + fix empty verses in epub
[librarian.git] / librarian / xslt / book2html.xslt
index d62071e..4b6c72a 100644 (file)
     </p>
 </xsl:template>
 
+<xsl:template match="strofa" mode="inline">
+    <xsl:apply-templates select="." />
+</xsl:template>
+
 <xsl:template match="strofa">
     <div class="stanza">
       <xsl:call-template name="section-anchor"/>
 </xsl:template>
 
 <xsl:template match="tabela|tabelka">
-    <table><xsl:apply-templates /></table>
+    <xsl:choose>
+        <xsl:when test="@ramka = '1'">
+            <table class="border"><xsl:apply-templates /></table>
+        </xsl:when>
+        <xsl:otherwise>
+            <table><xsl:apply-templates /></table>
+        </xsl:otherwise>
+    </xsl:choose>
 </xsl:template>
 <xsl:template match="wiersz">
     <tr><xsl:apply-templates /></tr>
     <em class="author-emphasis"><xsl:apply-templates mode="inline" /></em>
 </xsl:template>
 
+<xsl:template match="wieksze_odstepy" mode="inline">
+    <em class="wieksze-odstepy"><xsl:apply-templates mode="inline" /></em>
+</xsl:template>
+
 <xsl:template match="indeks_dolny" mode="inline">
     <sub><xsl:apply-templates mode="inline" /></sub>
 </xsl:template>