1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:wl="http://wolnelektury.pl/functions" exclude-result-prefixes="mml wl">
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 <xsl:template match="ilustr" mode="inline">
77 <xsl:apply-templates select="." />
80 <xsl:template match="ilustr">
82 <xsl:attribute name="src">
83 <xsl:value-of select="@src" />
85 <xsl:attribute name="alt">
86 <xsl:value-of select="@alt" />
88 <xsl:attribute name="title">
89 <xsl:value-of select="@alt" />
94 <!--===========================================================-->
95 <!-- Tagi PARAGRAFOWE -->
96 <!--===========================================================-->
98 <xsl:template match="autor_utworu" mode="poczatek">
99 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
100 <xsl:apply-templates />
104 <xsl:template match="autor_utworu" />
106 <xsl:template match="dzielo_nadrzedne" mode="poczatek">
107 <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
108 <xsl:apply-templates />
112 <xsl:template match="dzielo_nadrzedne" />
114 <xsl:template match="nazwa_utworu" mode="poczatek" >
115 <h2 class="intitle" xmlns="http://www.w3.org/1999/xhtml">
116 <xsl:apply-templates />
120 <xsl:template match="nazwa_utworu" />
122 <xsl:template match="podtytul" mode="poczatek">
123 <h2 class="insubtitle" xmlns="http://www.w3.org/1999/xhtml">
124 <xsl:apply-templates />
128 <xsl:template match="podtytul" />
130 <xsl:template match="naglowek_czesc|srodtytul">
131 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
132 <xsl:apply-templates />
136 <xsl:template match="naglowek_akt">
137 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
138 <xsl:apply-templates />
142 <xsl:template match="naglowek_scena">
143 <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
144 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
145 <xsl:apply-templates />
149 <xsl:template match="naglowek_podrozdzial">
150 <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
151 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
152 <xsl:apply-templates />
156 <xsl:template match="naglowek_rozdzial">
157 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
158 <xsl:apply-templates />
162 <xsl:template match="naglowek_osoba">
163 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
164 <xsl:apply-templates />
168 <xsl:template match="miejsce_czas">
169 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
170 <xsl:apply-templates />
174 <xsl:template match="didaskalia">
175 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
176 <xsl:apply-templates />
180 <xsl:template match="akap|akap_dialog|akap_cd">
181 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
182 <xsl:apply-templates />
186 <xsl:template match="strofa">
187 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
188 <xsl:apply-templates />
189 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
192 <xsl:template match="wers_normalny">
193 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
194 <xsl:apply-templates />
198 <xsl:template match="wers_akap">
199 <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">
200 <xsl:apply-templates />
204 <xsl:template match="wers_wciety">
205 <div class="verse" style='margin-left:1em;' xmlns="http://www.w3.org/1999/xhtml">
206 <xsl:apply-templates />
210 <xsl:template match="wers_do_prawej">
211 <div class="verse" style='text-align: right;' xmlns="http://www.w3.org/1999/xhtml">
212 <xsl:apply-templates/>
216 <xsl:template match="wers_wciety[@typ!='']">
217 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
218 <xsl:attribute name="style">
219 margin-left: <xsl:value-of select="@typ" />em;
221 <xsl:apply-templates />
225 <xsl:template match="wers_cd">
226 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
227 <xsl:apply-templates />
231 <xsl:template match="motto_podpis">
232 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
233 <xsl:apply-templates />
237 <!--===========================================================-->
238 <!-- Tagi LINIOWE -->
239 <!--===========================================================-->
241 <xsl:template match="slowo_obce">
242 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
243 <xsl:apply-templates />
247 <xsl:template match="mat" >
248 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
249 <xsl:apply-templates />
253 <xsl:template match="didask_tekst" >
254 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
255 <xsl:apply-templates />
259 <xsl:template match="tytul_dziela" >
260 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
261 <xsl:if test="@typ = '1'" >„</xsl:if>
262 <xsl:apply-templates />
263 <xsl:if test="@typ = '1'">”</xsl:if>
267 <xsl:template match="wyroznienie" >
268 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
269 <xsl:apply-templates />
273 <xsl:template match="indeks_dolny" >
274 <sub xmlns="http://www.w3.org/1999/xhtml">
275 <xsl:apply-templates />
279 <xsl:template match="osoba" >
280 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
281 <xsl:apply-templates />
285 <xsl:template match="naglowek_listy" >
286 <xsl:apply-templates />
289 <xsl:template match="lista_osoba" >
290 <li xmlns="http://www.w3.org/1999/xhtml">
291 <xsl:apply-templates />
295 <!--===========================================================-->
296 <!-- Tagi STANDALONE -->
297 <!--===========================================================-->
299 <xsl:template match="sekcja_swiatlo">
300 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
303 <xsl:template match="sekcja_asterysk">
304 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
307 <xsl:template match="separator_linia">
308 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
311 <!--===========================================================-->
312 <!-- Tagi SPECJALNE -->
313 <!--===========================================================-->
315 <xsl:template match="motyw" />
317 <xsl:template match="mat">
318 <img xmlns="http://www.w3.org/1999/xhtml">
319 <xsl:attribute name="src">
320 <xsl:value-of select="wl:mathml(.)" />
325 <xsl:template match="tabela|tabelka">
326 <table xmlns="http://www.w3.org/1999/xhtml">
327 <xsl:apply-templates />
330 <xsl:template match="wiersz">
331 <tr xmlns="http://www.w3.org/1999/xhtml">
332 <xsl:apply-templates />
335 <xsl:template match="kol">
336 <td xmlns="http://www.w3.org/1999/xhtml">
337 <xsl:apply-templates />
342 <!--===========================================================-->
343 <!-- Tagi IGNOROWANE -->
344 <!--===========================================================-->
346 <xsl:template match="extra" />
348 <xsl:template match="pe|pa|pr|pt" >
349 <a class="anchor" id="anchor-{.}" href="annotations.html#annotation-{.}"
350 xmlns="http://www.w3.org/1999/xhtml"><sup xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></sup></a>
353 <xsl:template match="uwaga" />
355 <xsl:template match="nota_red" />
356 <xsl:template match="abstrakt" />
358 <!--pominięcie tych metadanych-->
359 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
361 <!--===========================================================-->
362 <!-- Tagi TEKSTOWE -->
363 <!--===========================================================-->
365 <xsl:template match="text()" >
366 <xsl:value-of select="." />
369 <xsl:template match="text()" >
370 <xsl:value-of select="." />