Added handling of tags motto_podpis, podtytul and nota.
[wolnelektury.git] / bin / book2html.xslt
index 86d27d6..f52d830 100644 (file)
 <xsl:template match="powiesc|opowiadanie|liryka_l|liryka_lp|dramat_wierszowany_l|dramat_wierszowany_lp|dramat_wspolczesny">
     <xsl:if test="nazwa_utworu">
         <h1>
-            <xsl:apply-templates select="autor_utworu|dzielo_nadrzedne|nazwa_utworu" mode="header" />
+            <xsl:apply-templates select="autor_utworu|dzielo_nadrzedne|nazwa_utworu|podtytul" mode="header" />
         </h1>
     </xsl:if>
     <xsl:apply-templates />
 </xsl:template>
 
+<!-- ======================= -->
+<!-- = Header (title page) = -->
+<!-- ======================= -->
 <xsl:template match="autor_utworu" mode="header">
     <span class="author"><xsl:apply-templates mode="inline" /></span>
 </xsl:template>
     <span class="collection"><xsl:apply-templates mode="inline" /></span>
 </xsl:template>
 
+<xsl:template match="podtytul" mode="header">
+    <span class="subtitle"><xsl:apply-templates mode="inline" /></span>
+</xsl:template>
+
+<xsl:template match="nota">
+    <div class="note"><xsl:apply-templates /></div>
+</xsl:template>
+
 <xsl:template match="naglowek_akt|naglowek_czesc|srodtytul">
     <h2><xsl:apply-templates mode="inline" /></h2>
 </xsl:template>
     <blockquote><xsl:apply-templates /></blockquote>
 </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+<xsl:template match="motto">
+    <p class="motto"><xsl:apply-templates mode="inline" /></p>
+</xsl:template>
+
+<xsl:template match="motto_podpis">
+    <p class="motto_podpis"><xsl:apply-templates mode="inline" /></p>
+</xsl:template>
+
+<xsl:template match="sekcja_swiatlo">
+    <hr class="spacer" />
+</xsl:template>
+
+</xsl:stylesheet>