Merge changes from master to Aigrain publishing code - that will be used for new...
[librarian.git] / librarian / epub / xsltChunkTitle.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/">
3   <xsl:output method="html" version="1.0" encoding="utf-8" />
4   <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
5   <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
6
7   <xsl:template match="/">
8     <html xmlns="http://www.w3.org/1999/xhtml">
9       <head>
10         <link rel="stylesheet" href="style.css" type="text/css" />
11         <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
12         <title>
13           <xsl:text>Strona tytuĹ‚owa</xsl:text>
14         </title>
15       </head>
16       <body>
17         <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">
18           <div class='title-page'>
19             <xsl:apply-templates select="//dzielo_nadrzedne"  mode="poczatek"/>
20             <xsl:apply-templates select="//autor_utworu"  mode="poczatek"/>
21             <xsl:apply-templates select="//nazwa_utworu"  mode="poczatek"/>
22             <!--xsl:apply-templates select="//dc:title" mode="poczatek"/-->
23           </div>
24         </div>
25       </body>
26     </html>
27   </xsl:template>
28
29   <xsl:template match="text()" >
30     <xsl:value-of select="." />
31   </xsl:template>
32
33   <xsl:template match="node()" mode="poczatek">
34     <xsl:value-of select="." />
35   </xsl:template>
36
37   <xsl:template match="dc:title" mode="poczatek" >
38     <h1 class="title" xmlns="http://www.w3.org/1999/xhtml">
39       <xsl:apply-templates />
40     </h1>
41   </xsl:template>
42
43   <xsl:template match="autor_utworu" mode="poczatek">
44     <h2 class="author" >
45       <xsl:apply-templates />
46     </h2>
47   </xsl:template>
48
49   <xsl:template match="dzielo_nadrzedne" mode="poczatek">
50     <h2 class="collection" >
51       <xsl:apply-templates />
52     </h2>
53   </xsl:template>
54
55   <xsl:template match="nazwa_utworu" mode="poczatek" >
56     <h1 class="title" >
57       <xsl:apply-templates />
58     </h1>
59   </xsl:template>
60
61
62
63 </xsl:stylesheet>