Content warnings.
[librarian.git] / src / 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
5   <xsl:template match="/">
6     <html xmlns="http://www.w3.org/1999/xhtml">
7       <head>
8         <link rel="stylesheet" href="style.css" type="text/css" />
9         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10         <title>
11           <xsl:text>Strona tytuĹ‚owa</xsl:text>
12         </title>
13       </head>
14       <body>
15         <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">
16           <div class='title-page'>
17             <xsl:apply-templates select="//dc:title" mode="poczatek"/>
18           </div>
19         </div>
20       </body>
21     </html>
22   </xsl:template>
23
24   <xsl:template match="text()" >
25     <xsl:value-of select="." />
26   </xsl:template>
27
28   <xsl:template match="node()" mode="poczatek">
29     <xsl:value-of select="." />
30   </xsl:template>
31
32   <xsl:template match="dc:title" mode="poczatek" >
33     <h1 class="title" xmlns="http://www.w3.org/1999/xhtml">
34       <xsl:apply-templates />
35     </h1>
36   </xsl:template>
37
38 </xsl:stylesheet>