almos done
[librarian.git] / librarian / epub / xsltChunkTitle.xsl
index caf464d..1a997b6 100644 (file)
       <body>
         <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">
           <div class='title-page'>
-            <xsl:apply-templates select="//dc:title" mode="poczatek"/>
+            <xsl:apply-templates select="//dzielo_nadrzedne"  mode="poczatek"/>
+            <xsl:apply-templates select="//autor_utworu"  mode="poczatek"/>
+            <xsl:apply-templates select="//nazwa_utworu"  mode="poczatek"/>
+            <!--xsl:apply-templates select="//dc:title" mode="poczatek"/-->
           </div>
         </div>
       </body>
@@ -24,7 +27,7 @@
   </xsl:template>
 
   <xsl:template match="text()" >
-    <xsl:value-of select="." disable-output-escaping="yes" />
+    <xsl:value-of select="." />
   </xsl:template>
 
   <xsl:template match="node()" mode="poczatek">
     </h1>
   </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+  <xsl:template match="autor_utworu" mode="poczatek">
+    <h2 class="author" >
+      <xsl:apply-templates />
+    </h2>
+  </xsl:template>
+
+  <xsl:template match="dzielo_nadrzedne" mode="poczatek">
+    <h2 class="collection" >
+      <xsl:apply-templates />
+    </h2>
+  </xsl:template>
+
+  <xsl:template match="nazwa_utworu" mode="poczatek" >
+    <h1 class="title" >
+      <xsl:apply-templates />
+    </h1>
+  </xsl:template>
+
+
+
+</xsl:stylesheet>