fix author name
[librarian.git] / librarian / epub / xsltTitle.xsl
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <xsl:stylesheet version="1.0" \r
3     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
4     xmlns:dc="http://purl.org/dc/elements/1.1/"\r
5     xmlns:wl="http://wolnelektury.pl/functions">\r
6   <xsl:output method="html" version="1.0" encoding="utf-8" />\r
7   <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />\r
8   <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />\r
9 \r
10   <xsl:template match="/">\r
11     <html xmlns="http://www.w3.org/1999/xhtml">\r
12       <head>\r
13         <link rel="stylesheet" href="style.css" type="text/css" />\r
14         <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />\r
15         <title>\r
16           <xsl:text>Strona tytuĹ‚owa</xsl:text>\r
17         </title>\r
18       </head>\r
19       <body>\r
20         <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">\r
21           <div class='title-page'>\r
22             <xsl:choose>\r
23               <xsl:when test="//autor_utworu | //nazwa_utworu">\r
24                 <xsl:apply-templates select="//autor_utworu" mode="poczatek"/>\r
25                 <xsl:apply-templates select="//nazwa_utworu | //podtytul | //dzielo_nadrzedne" mode="poczatek"/>\r
26               </xsl:when>\r
27               <xsl:otherwise>\r
28                 <xsl:apply-templates select="//dc:creator" mode="poczatek"/>\r
29                 <xsl:apply-templates select="//dc:title | //podtytul | //dzielo_nadrzedne" mode="poczatek"/>\r
30               </xsl:otherwise>\r
31             </xsl:choose>\r
32           </div>\r
33           <p class="info">Publikacja zrealizowana w ramach projektu WolneLektury.pl</p>\r
34           <p class="info">\r
35             <img src="logo_wolnelektury.png" alt="WolneLektury.pl" />\r
36           </p>\r
37         </div>\r
38       </body>\r
39     </html>\r
40   </xsl:template>\r
41 \r
42   <xsl:template match="text()" >\r
43     <xsl:value-of select="." disable-output-escaping="yes" />\r
44   </xsl:template>\r
45 \r
46   <xsl:template match="node()" mode="poczatek">\r
47     <xsl:value-of select="." />\r
48   </xsl:template>\r
49 \r
50   <xsl:template match="dc:creator" mode="poczatek">\r
51     <div class="author" xmlns="http://www.w3.org/1999/xhtml">\r
52       <xsl:apply-templates />\r
53     </div>\r
54   </xsl:template>\r
55 \r
56   <xsl:template match="dc:creator/text()">\r
57     <div class="author" xmlns="http://www.w3.org/1999/xhtml">\r
58       <xsl:value-of select="wl:person_name(.)" />\r
59     </div>\r
60   </xsl:template>\r
61 \r
62   <xsl:template match="autor_utworu" mode="poczatek">\r
63     <div class="author" xmlns="http://www.w3.org/1999/xhtml">\r
64       <xsl:apply-templates />\r
65     </div>\r
66   </xsl:template>\r
67 \r
68   <xsl:template match="dzielo_nadrzedne" mode="poczatek">\r
69     <div class="collection" xmlns="http://www.w3.org/1999/xhtml">\r
70       <xsl:apply-templates />\r
71     </div>\r
72   </xsl:template>\r
73 \r
74   <xsl:template match="nazwa_utworu" mode="poczatek" >\r
75     <h1 class="title" xmlns="http://www.w3.org/1999/xhtml">\r
76       <xsl:apply-templates />\r
77     </h1>\r
78   </xsl:template>\r
79 \r
80   <xsl:template match="dc:title" mode="poczatek" >\r
81     <h1 class="title" xmlns="http://www.w3.org/1999/xhtml">\r
82       <xsl:apply-templates />\r
83     </h1>\r
84   </xsl:template>\r
85 \r
86   <xsl:template match="podtytul" mode="poczatek">\r
87     <div class="subtitle" xmlns="http://www.w3.org/1999/xhtml">\r
88       <xsl:apply-templates />\r
89     </div>\r
90   </xsl:template>\r
91 \r
92   <xsl:template match="pe|pa|pr|pt" />\r
93 \r
94   <xsl:template match="extra" />\r
95 \r
96   <xsl:template match="pe|pa|pr|pt" />\r
97 \r
98   <xsl:template match="extra" />\r
99 \r
100   <xsl:template match="motyw" />\r
101 \r
102 </xsl:stylesheet>