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="ramka">
71 <div class="frame" xmlns="http://www.w3.org/1999/xhtml">
72 <xsl:apply-templates />
76 <xsl:template match="motto">
77 <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
78 <xsl:apply-templates />
82 <xsl:template match="ilustr" mode="inline">
83 <xsl:apply-templates select="." />
86 <xsl:template match="ilustr">
88 <xsl:attribute name="src">
89 <xsl:value-of select="@src" />
91 <xsl:attribute name="alt">
92 <xsl:value-of select="@alt" />
94 <xsl:attribute name="title">
95 <xsl:value-of select="@alt" />
100 <!--===========================================================-->
101 <!-- Tagi PARAGRAFOWE -->
102 <!--===========================================================-->
104 <xsl:template match="autor_utworu" mode="poczatek">
105 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
106 <xsl:apply-templates />
110 <xsl:template match="autor_utworu" />
112 <xsl:template match="dzielo_nadrzedne" mode="poczatek">
113 <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
114 <xsl:apply-templates />
118 <xsl:template match="dzielo_nadrzedne" />
120 <xsl:template match="nazwa_utworu" mode="poczatek" >
121 <h2 class="intitle" xmlns="http://www.w3.org/1999/xhtml">
122 <xsl:apply-templates />
126 <xsl:template match="nazwa_utworu" />
128 <xsl:template match="podtytul" mode="poczatek">
129 <h2 class="insubtitle" xmlns="http://www.w3.org/1999/xhtml">
130 <xsl:apply-templates />
134 <xsl:template match="podtytul" />
136 <xsl:template match="naglowek_czesc|srodtytul">
137 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
138 <xsl:apply-templates />
142 <xsl:template match="naglowek_akt">
143 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
144 <xsl:apply-templates />
148 <xsl:template match="naglowek_scena">
149 <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
150 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
151 <xsl:apply-templates />
155 <xsl:template match="naglowek_podrozdzial">
156 <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>
157 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
158 <xsl:apply-templates />
162 <xsl:template match="naglowek_rozdzial">
163 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
164 <xsl:apply-templates />
168 <xsl:template match="naglowek_osoba">
169 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
170 <xsl:apply-templates />
174 <xsl:template match="miejsce_czas">
175 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
176 <xsl:apply-templates />
180 <xsl:template match="didaskalia">
181 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
182 <xsl:apply-templates />
186 <xsl:template match="akap|akap_dialog|akap_cd">
187 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
188 <xsl:apply-templates />
192 <xsl:template match="strofa">
193 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
194 <xsl:apply-templates />
195 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
198 <xsl:template match="wers_normalny">
199 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
200 <xsl:apply-templates />
204 <xsl:template match="wers_akap">
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">
211 <div class="verse" style='margin-left:1em;' 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="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 <!--===========================================================-->
312 <!-- Tagi IGNOROWANE -->
313 <!--===========================================================-->
315 <xsl:template match="extra" />
317 <xsl:template match="pe|pa|pr|pt" >
318 <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
319 xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
322 <xsl:template match="uwaga" />
324 <xsl:template match="nota_red" />
326 <!--pominięcie tych metadanych-->
327 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
329 <!--===========================================================-->
330 <!-- Tagi TEKSTOWE -->
331 <!--===========================================================-->
333 <xsl:template match="text()" >
334 <xsl:value-of select="." />
337 <xsl:template match="text()" >
338 <xsl:value-of select="." />