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="//dzielo_nadrzedne" mode="poczatek"/>
22 <xsl:apply-templates select="//autor_utworu" mode="poczatek"/>
23 <xsl:apply-templates select="//nazwa_utworu" mode="poczatek"/>
24 <xsl:apply-templates select="//podtytul" mode="poczatek"/>
27 <xsl:apply-templates />
33 <!--===========================================================-->
35 <!--===========================================================-->
37 <xsl:template match="nota">
38 <div class="note" xmlns="http://www.w3.org/1999/xhtml">
39 <xsl:apply-templates />
43 <xsl:template match="lista_osob" >
44 <div class="person-list" xmlns="http://www.w3.org/1999/xhtml">
45 <div class="h3" xmlns="http://www.w3.org/1999/xhtml">
46 <xsl:apply-templates select="child::naglowek_listy" />
48 <ol xmlns="http://www.w3.org/1999/xhtml">
49 <xsl:apply-templates select="lista_osoba" />
54 <xsl:template match="dedykacja">
55 <div class="dedication" xmlns="http://www.w3.org/1999/xhtml">
56 <xsl:apply-templates />
60 <xsl:template match="kwestia">
61 <div class="kwestia" xmlns="http://www.w3.org/1999/xhtml">
62 <xsl:apply-templates select="strofa|akapit|didaskalia|akap " />
66 <xsl:template match="dlugi_cytat|poezja_cyt">
67 <div class="block" xmlns="http://www.w3.org/1999/xhtml">
68 <xsl:apply-templates />
72 <xsl:template match="motto">
73 <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
74 <xsl:apply-templates />
78 <!--===========================================================-->
79 <!-- Tagi PARAGRAFOWE -->
80 <!--===========================================================-->
82 <xsl:template match="autor_utworu" mode="poczatek">
83 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
84 <xsl:apply-templates />
88 <xsl:template match="autor_utworu" />
90 <xsl:template match="dzielo_nadrzedne" mode="poczatek">
91 <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
92 <xsl:apply-templates />
96 <xsl:template match="dzielo_nadrzedne" />
98 <xsl:template match="nazwa_utworu" mode="poczatek" >
99 <h2 class="intitle" xmlns="http://www.w3.org/1999/xhtml">
100 <xsl:apply-templates />
104 <xsl:template match="nazwa_utworu" />
106 <xsl:template match="podtytul" mode="poczatek">
107 <h2 class="insubtitle" xmlns="http://www.w3.org/1999/xhtml">
108 <xsl:apply-templates />
112 <xsl:template match="podtytul" />
114 <xsl:template match="naglowek_czesc|srodtytul">
115 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
116 <xsl:apply-templates />
120 <xsl:template match="naglowek_akt">
121 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
122 <xsl:apply-templates />
126 <xsl:template match="naglowek_scena">
127 <a xmlns="http://www.w3.org/1999/xhtml"></a>
128 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
129 <xsl:apply-templates />
133 <xsl:template match="naglowek_podrozdzial">
134 <a xmlns="http://www.w3.org/1999/xhtml"></a>
135 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
136 <xsl:apply-templates />
140 <xsl:template match="naglowek_rozdzial">
141 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
142 <xsl:apply-templates />
146 <xsl:template match="naglowek_osoba">
147 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
148 <xsl:apply-templates />
152 <xsl:template match="miejsce_czas">
153 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
154 <xsl:apply-templates />
158 <xsl:template match="didaskalia">
159 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
160 <xsl:apply-templates />
164 <xsl:template match="akap|akap_dialog|akap_cd">
165 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
166 <xsl:apply-templates />
170 <xsl:template match="strofa">
171 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
172 <xsl:apply-templates />
173 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
176 <xsl:template match="wers_normalny">
177 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
178 <xsl:apply-templates />
182 <xsl:template match="wers_akap">
183 <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">
184 <xsl:apply-templates />
188 <xsl:template match="wers_wciety">
189 <div class="verse" style='margin-left:1em;' xmlns="http://www.w3.org/1999/xhtml">
190 <xsl:apply-templates />
194 <xsl:template match="wers_wciety[@typ!='']">
195 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
196 <xsl:attribute name="style">
197 margin-left: <xsl:value-of select="@typ" />em;
199 <xsl:apply-templates />
203 <xsl:template match="wers_cd">
204 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
205 <xsl:apply-templates />
209 <xsl:template match="motto_podpis">
210 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
211 <xsl:apply-templates />
215 <!--===========================================================-->
216 <!-- Tagi LINIOWE -->
217 <!--===========================================================-->
219 <xsl:template match="slowo_obce">
220 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
221 <xsl:apply-templates />
225 <xsl:template match="mat" >
226 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
227 <xsl:apply-templates />
231 <xsl:template match="didask_tekst" >
232 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
233 <xsl:apply-templates />
237 <xsl:template match="tytul_dziela" >
238 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
239 <xsl:if test="@typ = '1'" >„</xsl:if>
240 <xsl:apply-templates />
241 <xsl:if test="@typ = '1'">”</xsl:if>
245 <xsl:template match="wyroznienie" >
246 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
247 <xsl:apply-templates />
251 <xsl:template match="osoba" >
252 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
253 <xsl:apply-templates />
257 <xsl:template match="naglowek_listy" >
258 <xsl:apply-templates />
261 <xsl:template match="lista_osoba" >
262 <li xmlns="http://www.w3.org/1999/xhtml">
263 <xsl:apply-templates />
267 <!--===========================================================-->
268 <!-- Tagi STANDALONE -->
269 <!--===========================================================-->
271 <xsl:template match="sekcja_swiatlo">
272 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
275 <xsl:template match="sekcja_asterysk">
276 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
279 <xsl:template match="separator_linia">
280 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
283 <!--===========================================================-->
284 <!-- Tagi SPECJALNE -->
285 <!--===========================================================-->
287 <xsl:template match="motyw" />
289 <!--===========================================================-->
290 <!-- Tagi IGNOROWANE -->
291 <!--===========================================================-->
293 <xsl:template match="extra" />
295 <xsl:template match="pe|pa|pr|pt" >
296 <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
297 xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
300 <xsl:template match="uwaga" />
302 <xsl:template match="nota_red" />
304 <!--pominięcie tych metadanych-->
305 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
307 <!--===========================================================-->
308 <!-- Tagi TEKSTOWE -->
309 <!--===========================================================-->
311 <xsl:template match="text()" >
312 <xsl:value-of select="." />
315 <xsl:template match="text()" >
316 <xsl:value-of select="." />