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
10 <xsl:template match="/">
\r
11 <html xmlns="http://www.w3.org/1999/xhtml">
\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
16 <xsl:text>Strona tytułowa</xsl:text>
\r
20 <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">
\r
21 <div class='title-page'>
\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
28 <xsl:apply-templates select="//dc:creator" mode="poczatek"/>
\r
29 <xsl:apply-templates select="//dc:title | //podtytul | //dzielo_nadrzedne" mode="poczatek"/>
\r
33 <p class="info">Publikacja zrealizowana w ramach projektu WolneLektury.pl</p>
\r
35 <img src="logo_wolnelektury.png" alt="WolneLektury.pl" />
\r
42 <xsl:template match="text()" >
\r
43 <xsl:value-of select="." disable-output-escaping="yes" />
\r
46 <xsl:template match="node()" mode="poczatek">
\r
47 <xsl:value-of select="." />
\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
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
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
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
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
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
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
92 <xsl:template match="pe|pa|pr|pt" />
\r
94 <xsl:template match="extra" />
\r
96 <xsl:template match="pe|pa|pr|pt" />
\r
98 <xsl:template match="extra" />
\r
100 <xsl:template match="motyw" />
\r