epub: subtitle fix
[librarian.git] / librarian / epub / xsltScheme.xsl
index 378e4ec..8b384c3 100644 (file)
@@ -19,6 +19,7 @@
           <xsl:if test="//nazwa_utworu">\r
             <!--h1 xmlns="http://www.w3.org/1999/xhtml"-->\r
               <xsl:apply-templates select=" //nazwa_utworu" mode="poczatek"/>\r
+              <xsl:apply-templates select=" //podtytul" mode="poczatek"/>\r
             <!--/h1-->\r
           </xsl:if>\r
           <xsl:apply-templates />\r
   <xsl:template match="nazwa_utworu" />\r
 \r
   <xsl:template match="podtytul" mode="poczatek">\r
-    <h2 class="subtitle" xmlns="http://www.w3.org/1999/xhtml">\r
+    <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">\r
       <xsl:apply-templates />\r
     </h2>\r
   </xsl:template>\r
   </xsl:template>\r
 \r
   <xsl:template match="akap|akap_dialog|akap_cd">\r
-    <div class="paragraph" xmlns="http://www.w3.org/1999/xhtml">\r
+    <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">\r
       <xsl:apply-templates />\r
-    </div>\r
+    </p>\r
   </xsl:template>\r
 \r
   <xsl:template match="strofa">\r
     <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">\r
       <xsl:apply-templates />\r
-    </div>\r
+    </div><div xmlns="http://www.w3.org/1999/xhtml">&#160;</div>\r
   </xsl:template>\r
 \r
   <xsl:template match="wers_normalny">\r
     <div class="verse" xmlns="http://www.w3.org/1999/xhtml">\r
       <xsl:apply-templates />\r
-    </div>\r
+    &#160;</div>\r
   </xsl:template>\r
 \r
-  <xsl:template match="wers_wciety">\r
-    <div class="verse" style="padding-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">\r
+  <xsl:template match="wers_akap">\r
+    <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">\r
       <xsl:apply-templates />\r
-    </div>\r
+    &#160;</div>\r
   </xsl:template>\r
 \r
-  <xsl:template match="wers_wciety[@typ='1']">\r
-    <div class="verse" style="padding-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">\r
-      <xsl:apply-templates />\r
-    </div>\r
-  </xsl:template>\r
-\r
-  <xsl:template match="wers_wciety[@typ='2']">\r
-    <div class="verse" style="padding-left: 2em;" xmlns="http://www.w3.org/1999/xhtml">\r
-      <xsl:apply-templates />\r
-    </div>\r
-  </xsl:template>\r
-\r
-  <xsl:template match="wers_wciety[@typ='3']">\r
-    <div class="verse" style="padding-left: 3em;" xmlns="http://www.w3.org/1999/xhtml">\r
-      <xsl:apply-templates />\r
-    </div>\r
-  </xsl:template>\r
-\r
-  <xsl:template match="wers_wciety[@typ='4']">\r
-    <div class="verse" style="padding-left: 4em;" xmlns="http://www.w3.org/1999/xhtml">\r
-      <xsl:apply-templates />\r
-    </div>\r
-  </xsl:template>\r
-\r
-  <xsl:template match="wers_wciety[@typ='5']">\r
-    <div class="verse" style="padding-left: 5em;" xmlns="http://www.w3.org/1999/xhtml">\r
+  <xsl:template match="wers_wciety">\r
+    <div class="verse" style='margin-left:1em;' xmlns="http://www.w3.org/1999/xhtml">\r
       <xsl:apply-templates />\r
-    </div>\r
+    &#160;</div>\r
   </xsl:template>\r
 \r
-  <xsl:template match="wers_wciety[@typ='6']">\r
-    <div class="verse" style="padding-left: 6em;" xmlns="http://www.w3.org/1999/xhtml">\r
+  <xsl:template match="wers_wciety[@typ!='']">\r
+    <div class="verse" xmlns="http://www.w3.org/1999/xhtml">\r
+      <xsl:attribute name="style">\r
+          margin-left: <xsl:value-of select="@typ" />em;\r
+      </xsl:attribute>\r
       <xsl:apply-templates />\r
-    </div>\r
+    &#160;</div>\r
   </xsl:template>\r
 \r
   <xsl:template match="wers_cd">\r
-    <div class="verse" style="padding-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">\r
+    <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">\r
       <xsl:apply-templates />\r
-    </div>\r
+    &#160;</div>\r
   </xsl:template>\r
 \r
   <xsl:template match="motto_podpis">\r
   <!--===========================================================-->\r
 \r
   <xsl:template match="sekcja_swiatlo">\r
-    <hr class="spacer" xmlns="http://www.w3.org/1999/xhtml"></hr>\r
+    <p class="spacer" xmlns="http://www.w3.org/1999/xhtml">&#160;</p>\r
   </xsl:template>\r
 \r
   <xsl:template match="sekcja_asterysk">\r
   <!-- Tagi IGNOROWANE -->\r
   <!--===========================================================-->\r
 \r
-  <xsl:template match="pe|pa|pr|pt" />\r
-\r
   <xsl:template match="extra" />\r
 \r
   <xsl:template match="pe|pa|pr|pt" >\r
 \r
   <xsl:template match="uwaga" />\r
 \r
+  <xsl:template match="nota_red" />\r
+\r
   <!--pominiÄ™cie tych metadanych-->\r
   <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />\r
 \r