after FoC 2 release + fixed footnotes in section headings
[librarian.git] / librarian / epub / xsltScheme.xsl
index e8a5af6..c3eb9fe 100644 (file)
@@ -16,6 +16,7 @@
       <xsl:element name="body" xmlns="http://www.w3.org/1999/xhtml">
         <xsl:element name="div" xmlns="http://www.w3.org/1999/xhtml">
           <xsl:attribute name="id">book-text</xsl:attribute>
+
           <xsl:if test="//nazwa_utworu">
             <!--h1 xmlns="http://www.w3.org/1999/xhtml"-->
               <xsl:apply-templates select="//dzielo_nadrzedne" mode="poczatek"/>
@@ -86,6 +87,9 @@
   </xsl:template>
 
   <xsl:template match="autor_utworu" />
+  <xsl:template match="autor_rozdzialu">
+      <xsl:apply-templates />
+  </xsl:template>
 
   <xsl:template match="dzielo_nadrzedne" mode="poczatek">
     <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
       <xsl:apply-templates />
     </h2>
   </xsl:template>
+  
+  <xsl:template match="autor_rozdzialu">
+  </xsl:template>
 
   <xsl:template match="naglowek_rozdzial">
     <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test="name(following-sibling::*[1])='autor_rozdzialu'">
+       <xsl:value-of select="following-sibling::*[1]/text()"/> -
+      </xsl:if>
       <xsl:apply-templates />
     </h2>
   </xsl:template>
     </div>
   </xsl:template>
 
+  <xsl:template match="lista">
+    <ul>
+      <xsl:apply-templates />
+    </ul>
+  </xsl:template>
+
+  <xsl:template match="punkt">
+    <li><xsl:apply-templates /></li>
+  </xsl:template>
+
+  <xsl:template match="www">
+    <a>
+      <xsl:attribute name="href">
+       <xsl:value-of select="text()"/>
+      </xsl:attribute>
+      <xsl:value-of select="text()"/>
+    </a>
+  </xsl:template>
+
+  <xsl:template match="link">
+    <a>
+      <xsl:attribute name="href">
+       <xsl:value-of select="@url"/>
+      </xsl:attribute>
+      <xsl:value-of select="text()"/>
+    </a>
+  </xsl:template>
+
+
   <!--===========================================================-->
   <!-- Tagi LINIOWE -->
   <!--===========================================================-->