epub: Don't rely on margin for stanzas
[librarian.git] / librarian / epub / xsltChunkTitle.xsl
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/">\r
3   <xsl:output method="html" version="1.0" encoding="utf-8" />\r
4   <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />\r
5   <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />\r
6 \r
7   <xsl:template match="/">\r
8     <html xmlns="http://www.w3.org/1999/xhtml">\r
9       <head>\r
10         <link rel="stylesheet" href="style.css" type="text/css" />\r
11         <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />\r
12         <title>\r
13           <xsl:text>Strona tytuĹ‚owa</xsl:text>\r
14         </title>\r
15       </head>\r
16       <body>\r
17         <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">\r
18           <div class='title-page'>\r
19             <xsl:apply-templates select="//dc:title" mode="poczatek"/>\r
20           </div>\r
21         </div>\r
22       </body>\r
23     </html>\r
24   </xsl:template>\r
25 \r
26   <xsl:template match="text()" >\r
27     <xsl:value-of select="." disable-output-escaping="yes" />\r
28   </xsl:template>\r
29 \r
30   <xsl:template match="node()" mode="poczatek">\r
31     <xsl:value-of select="." />\r
32   </xsl:template>\r
33 \r
34   <xsl:template match="dc:title" mode="poczatek" >\r
35     <h1 class="title" xmlns="http://www.w3.org/1999/xhtml">\r
36       <xsl:apply-templates />\r
37     </h1>\r
38   </xsl:template>\r
39 \r
40 </xsl:stylesheet>