1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
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" />
7 <xsl:template match="/" >
8 <xsl:element name="html" xmlns="http://www.w3.org/1999/xhtml">
9 <xsl:element name="head">
10 <link rel="stylesheet" href="style.css" type="text/css" />
11 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
16 <xsl:element name="body" xmlns="http://www.w3.org/1999/xhtml">
17 <xsl:element name="div" xmlns="http://www.w3.org/1999/xhtml">
18 <xsl:attribute name="id">book-text</xsl:attribute>
19 <xsl:if test="//nazwa_utworu">
20 <!--h1 xmlns="http://www.w3.org/1999/xhtml"-->
21 <xsl:apply-templates select=" //nazwa_utworu" mode="poczatek"/>
22 <xsl:apply-templates select=" //podtytul" mode="poczatek"/>
25 <xsl:apply-templates />
31 <!--===========================================================-->
33 <!--===========================================================-->
35 <xsl:template match="nota">
36 <div class="note" xmlns="http://www.w3.org/1999/xhtml">
37 <xsl:apply-templates />
41 <xsl:template match="lista_osob" >
42 <div class="person-list" xmlns="http://www.w3.org/1999/xhtml">
43 <div class="h3" xmlns="http://www.w3.org/1999/xhtml">
44 <xsl:apply-templates select="child::naglowek_listy" />
46 <ol xmlns="http://www.w3.org/1999/xhtml">
47 <xsl:apply-templates select="lista_osoba" />
52 <xsl:template match="dedykacja">
53 <div class="dedication" xmlns="http://www.w3.org/1999/xhtml">
54 <xsl:apply-templates />
58 <xsl:template match="kwestia">
59 <div class="kwestia" xmlns="http://www.w3.org/1999/xhtml">
60 <xsl:apply-templates select="strofa|akapit|didaskalia|akap " />
64 <xsl:template match="dlugi_cytat|poezja_cyt">
65 <div class="block" xmlns="http://www.w3.org/1999/xhtml">
66 <xsl:apply-templates />
70 <xsl:template match="motto">
71 <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
72 <xsl:apply-templates />
76 <!--===========================================================-->
77 <!-- Tagi PARAGRAFOWE -->
78 <!--===========================================================-->
80 <xsl:template match="autor_utworu" mode="poczatek">
81 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
82 <xsl:apply-templates />
86 <xsl:template match="autor_utworu" />
88 <xsl:template match="dzielo_nadrzedne" mode="poczatek">
89 <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
90 <xsl:apply-templates />
94 <xsl:template match="dzielo_nadrzedne" />
96 <xsl:template match="nazwa_utworu" mode="poczatek" >
97 <h2 class="intitle" xmlns="http://www.w3.org/1999/xhtml">
98 <xsl:apply-templates />
102 <xsl:template match="nazwa_utworu" />
104 <xsl:template match="podtytul" mode="poczatek">
105 <h2 class="insubtitle" xmlns="http://www.w3.org/1999/xhtml">
106 <xsl:apply-templates />
110 <xsl:template match="podtytul" />
112 <xsl:template match="naglowek_czesc|srodtytul">
113 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
114 <xsl:apply-templates />
118 <xsl:template match="naglowek_akt">
119 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
120 <xsl:apply-templates />
124 <xsl:template match="naglowek_scena">
125 <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
126 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
127 <xsl:apply-templates />
131 <xsl:template match="naglowek_podrozdzial">
132 <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
133 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
134 <xsl:apply-templates />
138 <xsl:template match="naglowek_rozdzial">
139 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
140 <xsl:apply-templates />
144 <xsl:template match="naglowek_osoba">
145 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
146 <xsl:apply-templates />
150 <xsl:template match="miejsce_czas">
151 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
152 <xsl:apply-templates />
156 <xsl:template match="didaskalia">
157 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
158 <xsl:apply-templates />
162 <xsl:template match="akap|akap_dialog|akap_cd">
163 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
164 <xsl:apply-templates />
168 <xsl:template match="strofa">
169 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
170 <xsl:apply-templates />
171 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
174 <xsl:template match="wers_normalny">
175 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
176 <xsl:apply-templates />
180 <xsl:template match="wers_akap">
181 <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">
182 <xsl:apply-templates />
186 <xsl:template match="wers_wciety">
187 <div class="verse" style='margin-left:1em;' xmlns="http://www.w3.org/1999/xhtml">
188 <xsl:apply-templates />
192 <xsl:template match="wers_wciety[@typ!='']">
193 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
194 <xsl:attribute name="style">
195 margin-left: <xsl:value-of select="@typ" />em;
197 <xsl:apply-templates />
201 <xsl:template match="wers_cd">
202 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
203 <xsl:apply-templates />
207 <xsl:template match="motto_podpis">
208 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
209 <xsl:apply-templates />
213 <!--===========================================================-->
214 <!-- Tagi LINIOWE -->
215 <!--===========================================================-->
217 <xsl:template match="slowo_obce">
218 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
219 <xsl:apply-templates />
223 <xsl:template match="mat" >
224 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
225 <xsl:apply-templates />
229 <xsl:template match="didask_tekst" >
230 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
231 <xsl:apply-templates />
235 <xsl:template match="tytul_dziela" >
236 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
237 <xsl:if test="@typ = '1'" >„</xsl:if>
238 <xsl:apply-templates />
239 <xsl:if test="@typ = '1'">”</xsl:if>
243 <xsl:template match="wyroznienie" >
244 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
245 <xsl:apply-templates />
249 <xsl:template match="osoba" >
250 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
251 <xsl:apply-templates />
255 <xsl:template match="naglowek_listy" >
256 <xsl:apply-templates />
259 <xsl:template match="lista_osoba" >
260 <li xmlns="http://www.w3.org/1999/xhtml">
261 <xsl:apply-templates />
265 <!--===========================================================-->
266 <!-- Tagi STANDALONE -->
267 <!--===========================================================-->
269 <xsl:template match="sekcja_swiatlo">
270 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
273 <xsl:template match="sekcja_asterysk">
274 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
277 <xsl:template match="separator_linia">
278 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
281 <!--===========================================================-->
282 <!-- Tagi SPECJALNE -->
283 <!--===========================================================-->
285 <xsl:template match="motyw" />
287 <!--===========================================================-->
288 <!-- Tagi IGNOROWANE -->
289 <!--===========================================================-->
291 <xsl:template match="extra" />
293 <xsl:template match="pe|pa|pr|pt" >
294 <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
295 xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
298 <xsl:template match="uwaga" />
300 <xsl:template match="nota_red" />
302 <!--pominięcie tych metadanych-->
303 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
305 <!--===========================================================-->
306 <!-- Tagi TEKSTOWE -->
307 <!--===========================================================-->
309 <xsl:template match="text()" >
310 <xsl:value-of select="." />
313 <xsl:template match="text()" >
314 <xsl:value-of select="." />