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">
78 <xsl:attribute name="src">
79 <xsl:value-of select="@src" />
81 <xsl:attribute name="alt">
82 <xsl:value-of select="@alt" />
84 <xsl:attribute name="title">
85 <xsl:value-of select="@alt" />
90 <!--===========================================================-->
91 <!-- Tagi PARAGRAFOWE -->
92 <!--===========================================================-->
94 <xsl:template match="autor_utworu" mode="poczatek">
95 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
96 <xsl:apply-templates />
100 <xsl:template match="autor_utworu" />
102 <xsl:template match="dzielo_nadrzedne" mode="poczatek">
103 <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
104 <xsl:apply-templates />
108 <xsl:template match="dzielo_nadrzedne" />
110 <xsl:template match="nazwa_utworu" mode="poczatek" >
111 <h2 class="intitle" xmlns="http://www.w3.org/1999/xhtml">
112 <xsl:apply-templates />
116 <xsl:template match="nazwa_utworu" />
118 <xsl:template match="podtytul" mode="poczatek">
119 <h2 class="insubtitle" xmlns="http://www.w3.org/1999/xhtml">
120 <xsl:apply-templates />
124 <xsl:template match="podtytul" />
126 <xsl:template match="naglowek_czesc|srodtytul">
127 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
128 <xsl:apply-templates />
132 <xsl:template match="naglowek_akt">
133 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
134 <xsl:apply-templates />
138 <xsl:template match="naglowek_scena">
139 <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
140 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
141 <xsl:apply-templates />
145 <xsl:template match="naglowek_podrozdzial">
146 <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
147 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
148 <xsl:apply-templates />
152 <xsl:template match="naglowek_rozdzial">
153 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
154 <xsl:apply-templates />
158 <xsl:template match="naglowek_osoba">
159 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
160 <xsl:apply-templates />
164 <xsl:template match="miejsce_czas">
165 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
166 <xsl:apply-templates />
170 <xsl:template match="didaskalia">
171 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
172 <xsl:apply-templates />
176 <xsl:template match="akap|akap_dialog|akap_cd">
177 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
178 <xsl:apply-templates />
182 <xsl:template match="strofa">
183 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
184 <xsl:apply-templates />
185 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
188 <xsl:template match="wers_normalny">
189 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
190 <xsl:apply-templates />
194 <xsl:template match="wers_akap">
195 <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">
196 <xsl:apply-templates />
200 <xsl:template match="wers_wciety">
201 <div class="verse" style='margin-left:1em;' xmlns="http://www.w3.org/1999/xhtml">
202 <xsl:apply-templates />
206 <xsl:template match="wers_do_prawej">
207 <div class="verse" style='text-align: right;' xmlns="http://www.w3.org/1999/xhtml">
208 <xsl:apply-templates/>
212 <xsl:template match="wers_wciety[@typ!='']">
213 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
214 <xsl:attribute name="style">
215 margin-left: <xsl:value-of select="@typ" />em;
217 <xsl:apply-templates />
221 <xsl:template match="wers_cd">
222 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
223 <xsl:apply-templates />
227 <xsl:template match="motto_podpis">
228 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
229 <xsl:apply-templates />
233 <!--===========================================================-->
234 <!-- Tagi LINIOWE -->
235 <!--===========================================================-->
237 <xsl:template match="slowo_obce">
238 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
239 <xsl:apply-templates />
243 <xsl:template match="mat" >
244 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
245 <xsl:apply-templates />
249 <xsl:template match="didask_tekst" >
250 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
251 <xsl:apply-templates />
255 <xsl:template match="tytul_dziela" >
256 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
257 <xsl:if test="@typ = '1'" >„</xsl:if>
258 <xsl:apply-templates />
259 <xsl:if test="@typ = '1'">”</xsl:if>
263 <xsl:template match="wyroznienie" >
264 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
265 <xsl:apply-templates />
269 <xsl:template match="wieksze_odstepy" >
270 <em class="wieksze-odstepy" xmlns="http://www.w3.org/1999/xhtml">
271 <xsl:apply-templates />
275 <xsl:template match="indeks_dolny" >
276 <sub xmlns="http://www.w3.org/1999/xhtml">
277 <xsl:apply-templates />
281 <xsl:template match="osoba" >
282 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
283 <xsl:apply-templates />
287 <xsl:template match="naglowek_listy" >
288 <xsl:apply-templates />
291 <xsl:template match="lista_osoba" >
292 <li xmlns="http://www.w3.org/1999/xhtml">
293 <xsl:apply-templates />
297 <!--===========================================================-->
298 <!-- Tagi STANDALONE -->
299 <!--===========================================================-->
301 <xsl:template match="sekcja_swiatlo">
302 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
305 <xsl:template match="sekcja_asterysk">
306 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
309 <xsl:template match="separator_linia">
310 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
313 <!--===========================================================-->
314 <!-- Tagi SPECJALNE -->
315 <!--===========================================================-->
317 <xsl:template match="motyw" />
319 <xsl:template match="mat">
320 <img xmlns="http://www.w3.org/1999/xhtml">
321 <xsl:attribute name="src">
322 <xsl:value-of select="wl:mathml(.)" />
327 <xsl:template match="tabela|tabelka">
329 <xsl:when test="@ramka = '1'">
330 <table class="border" xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></table>
333 <table xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></table>
337 <xsl:template match="wiersz">
338 <tr xmlns="http://www.w3.org/1999/xhtml">
339 <xsl:apply-templates />
342 <xsl:template match="kol">
343 <td xmlns="http://www.w3.org/1999/xhtml">
344 <xsl:apply-templates />
349 <!--===========================================================-->
350 <!-- Tagi IGNOROWANE -->
351 <!--===========================================================-->
353 <xsl:template match="extra" />
355 <xsl:template match="pe|pa|pr|pt" >
356 <a class="anchor" id="anchor-{.}" href="annotations.html#annotation-{.}"
357 xmlns="http://www.w3.org/1999/xhtml"><sup xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></sup></a>
360 <xsl:template match="uwaga" />
362 <xsl:template match="nota_red" />
363 <xsl:template match="abstrakt" />
365 <!--pominięcie tych metadanych-->
366 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
368 <!--===========================================================-->
369 <!-- Tagi TEKSTOWE -->
370 <!--===========================================================-->
372 <xsl:template match="text()" >
373 <xsl:value-of select="." />
376 <xsl:template match="text()" >
377 <xsl:value-of select="." />