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="autor_rozdzialu">
143 <xsl:template match="naglowek_rozdzial">
144 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
145 <xsl:if test="name(following-sibling::*[1])='autor_rozdzialu'">
146 <xsl:value-of select="following-sibling::*[1]/text()"/> -
148 <xsl:apply-templates />
152 <xsl:template match="naglowek_osoba">
153 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
154 <xsl:apply-templates />
158 <xsl:template match="miejsce_czas">
159 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
160 <xsl:apply-templates />
164 <xsl:template match="didaskalia">
165 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
166 <xsl:apply-templates />
170 <xsl:template match="akap|akap_dialog|akap_cd">
171 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
172 <xsl:apply-templates />
176 <xsl:template match="strofa">
177 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
178 <xsl:apply-templates />
179 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
182 <xsl:template match="wers_normalny">
183 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
184 <xsl:apply-templates />
188 <xsl:template match="wers_akap">
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">
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[@typ!='']">
201 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
202 <xsl:attribute name="style">
203 margin-left: <xsl:value-of select="@typ" />em;
205 <xsl:apply-templates />
209 <xsl:template match="wers_cd">
210 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
211 <xsl:apply-templates />
215 <xsl:template match="motto_podpis">
216 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
217 <xsl:apply-templates />
221 <xsl:template match="lista">
223 <xsl:apply-templates />
227 <xsl:template match="punkt">
228 <li><xsl:apply-templates /></li>
231 <xsl:template match="www">
233 <xsl:attribute name="href">
234 <xsl:value-of select="text()"/>
236 <xsl:value-of select="text()"/>
240 <xsl:template match="link">
242 <xsl:attribute name="href">
243 <xsl:value-of select="@url"/>
245 <xsl:value-of select="text()"/>
250 <!--===========================================================-->
251 <!-- Tagi LINIOWE -->
252 <!--===========================================================-->
254 <xsl:template match="slowo_obce">
255 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
256 <xsl:apply-templates />
260 <xsl:template match="mat" >
261 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
262 <xsl:apply-templates />
266 <xsl:template match="didask_tekst" >
267 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
268 <xsl:apply-templates />
272 <xsl:template match="tytul_dziela" >
273 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
274 <xsl:if test="@typ = '1'" >„</xsl:if>
275 <xsl:apply-templates />
276 <xsl:if test="@typ = '1'">”</xsl:if>
280 <xsl:template match="wyroznienie" >
281 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
282 <xsl:apply-templates />
286 <xsl:template match="osoba" >
287 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
288 <xsl:apply-templates />
292 <xsl:template match="naglowek_listy" >
293 <xsl:apply-templates />
296 <xsl:template match="lista_osoba" >
297 <li xmlns="http://www.w3.org/1999/xhtml">
298 <xsl:apply-templates />
302 <!--===========================================================-->
303 <!-- Tagi STANDALONE -->
304 <!--===========================================================-->
306 <xsl:template match="sekcja_swiatlo">
307 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
310 <xsl:template match="sekcja_asterysk">
311 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
314 <xsl:template match="separator_linia">
315 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
318 <!--===========================================================-->
319 <!-- Tagi SPECJALNE -->
320 <!--===========================================================-->
322 <xsl:template match="motyw" />
324 <!--===========================================================-->
325 <!-- Tagi IGNOROWANE -->
326 <!--===========================================================-->
328 <xsl:template match="extra" />
330 <xsl:template match="pe|pa|pr|pt" >
331 <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
332 xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
335 <xsl:template match="uwaga" />
337 <xsl:template match="nota_red" />
339 <!--pominięcie tych metadanych-->
340 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
342 <!--===========================================================-->
343 <!-- Tagi TEKSTOWE -->
344 <!--===========================================================-->
346 <xsl:template match="text()" >
347 <xsl:value-of select="." />
350 <xsl:template match="text()" >
351 <xsl:value-of select="." />