Preliminary math and tables support.
[librarian.git] / librarian / xslt / book2txt.xslt
old mode 100755 (executable)
new mode 100644 (file)
index bf78d41..a578492
@@ -18,7 +18,7 @@
 <!-- = (can contain block tags, paragraph tags, standalone tags and special tags) = -->
 <!-- ============================================================================== -->
 <xsl:template match="powiesc|opowiadanie|liryka_l|liryka_lp|dramat_wierszowany_l|dramat_wierszowany_lp|dramat_wspolczesny">
-<xsl:if test="nazwa_utworu">
+<xsl:if test="not (../@raw-text) and nazwa_utworu">
     <xsl:apply-templates select="autor_utworu|dzielo_nadrzedne|nazwa_utworu|podtytul" mode="header" />
     <xsl:call-template name="translators" />
     <xsl:text>
 <xsl:apply-templates mode="inline" />
 </xsl:template>
 
+<xsl:template match="tabela">
+       <xsl:text>
+
+</xsl:text>
+<xsl:apply-templates/>
+<xsl:text>
+</xsl:text>
+</xsl:template>
+<xsl:template match="wiersz">
+       <xsl:apply-templates />
+       <xsl:text>
+</xsl:text>
+</xsl:template>
+<xsl:template match="kol">
+       <xsl:apply-templates mode="inline" />
+       <xsl:text>    </xsl:text>
+</xsl:template>
+
 
 <!-- ================================================ -->
 <!-- = INLINE TAGS                                  = -->