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_wciety[@typ!='']">
211 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
212 <xsl:attribute name="style">
213 margin-left: <xsl:value-of select="@typ" />em;
215 <xsl:apply-templates />
219 <xsl:template match="wers_cd">
220 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
221 <xsl:apply-templates />
225 <xsl:template match="motto_podpis">
226 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
227 <xsl:apply-templates />
231 <!--===========================================================-->
232 <!-- Tagi LINIOWE -->
233 <!--===========================================================-->
235 <xsl:template match="slowo_obce">
236 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
237 <xsl:apply-templates />
241 <xsl:template match="mat" >
242 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
243 <xsl:apply-templates />
247 <xsl:template match="didask_tekst" >
248 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
249 <xsl:apply-templates />
253 <xsl:template match="tytul_dziela" >
254 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
255 <xsl:if test="@typ = '1'" >„</xsl:if>
256 <xsl:apply-templates />
257 <xsl:if test="@typ = '1'">”</xsl:if>
261 <xsl:template match="wyroznienie" >
262 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
263 <xsl:apply-templates />
267 <xsl:template match="indeks_dolny" >
268 <sub xmlns="http://www.w3.org/1999/xhtml">
269 <xsl:apply-templates />
273 <xsl:template match="osoba" >
274 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
275 <xsl:apply-templates />
279 <xsl:template match="naglowek_listy" >
280 <xsl:apply-templates />
283 <xsl:template match="lista_osoba" >
284 <li xmlns="http://www.w3.org/1999/xhtml">
285 <xsl:apply-templates />
289 <!--===========================================================-->
290 <!-- Tagi STANDALONE -->
291 <!--===========================================================-->
293 <xsl:template match="sekcja_swiatlo">
294 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
297 <xsl:template match="sekcja_asterysk">
298 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
301 <xsl:template match="separator_linia">
302 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
305 <!--===========================================================-->
306 <!-- Tagi SPECJALNE -->
307 <!--===========================================================-->
309 <xsl:template match="motyw" />
311 <xsl:template match="mat">
312 <img xmlns="http://www.w3.org/1999/xhtml">
313 <xsl:attribute name="src">
314 <xsl:value-of select="wl:mathml(.)" />
319 <xsl:template match="tabela|tabelka">
320 <table xmlns="http://www.w3.org/1999/xhtml">
321 <xsl:apply-templates />
324 <xsl:template match="wiersz">
325 <tr xmlns="http://www.w3.org/1999/xhtml">
326 <xsl:apply-templates />
329 <xsl:template match="kol">
330 <td xmlns="http://www.w3.org/1999/xhtml">
331 <xsl:apply-templates />
336 <!--===========================================================-->
337 <!-- Tagi IGNOROWANE -->
338 <!--===========================================================-->
340 <xsl:template match="extra" />
342 <xsl:template match="pe|pa|pr|pt" >
343 <a class="anchor" id="anchor-{.}" href="annotations.html#annotation-{.}"
344 xmlns="http://www.w3.org/1999/xhtml"><sup xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></sup></a>
347 <xsl:template match="uwaga" />
349 <xsl:template match="nota_red" />
350 <xsl:template match="abstrakt" />
352 <!--pominięcie tych metadanych-->
353 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
355 <!--===========================================================-->
356 <!-- Tagi TEKSTOWE -->
357 <!--===========================================================-->
359 <xsl:template match="text()" >
360 <xsl:value-of select="." />
363 <xsl:template match="text()" >
364 <xsl:value-of select="." />