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>
20 <xsl:if test="//nazwa_utworu">
21 <!--h1 xmlns="http://www.w3.org/1999/xhtml"-->
22 <xsl:apply-templates select="//dzielo_nadrzedne" mode="poczatek"/>
23 <xsl:apply-templates select="//autor_utworu" mode="poczatek"/>
24 <xsl:apply-templates select="//nazwa_utworu" mode="poczatek"/>
25 <xsl:apply-templates select="//podtytul" mode="poczatek"/>
28 <xsl:apply-templates />
34 <!--===========================================================-->
36 <!--===========================================================-->
38 <xsl:template match="nota">
39 <div class="note" xmlns="http://www.w3.org/1999/xhtml">
40 <xsl:apply-templates />
44 <xsl:template match="lista_osob" >
45 <div class="person-list" xmlns="http://www.w3.org/1999/xhtml">
46 <div class="h3" xmlns="http://www.w3.org/1999/xhtml">
47 <xsl:apply-templates select="child::naglowek_listy" />
49 <ol xmlns="http://www.w3.org/1999/xhtml">
50 <xsl:apply-templates select="lista_osoba" />
55 <xsl:template match="dedykacja">
56 <div class="dedication" xmlns="http://www.w3.org/1999/xhtml">
57 <xsl:apply-templates />
61 <xsl:template match="kwestia">
62 <div class="kwestia" xmlns="http://www.w3.org/1999/xhtml">
63 <xsl:apply-templates select="strofa|akapit|didaskalia|akap " />
67 <xsl:template match="dlugi_cytat|poezja_cyt">
68 <div class="block" xmlns="http://www.w3.org/1999/xhtml">
69 <xsl:apply-templates />
73 <xsl:template match="motto">
74 <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
75 <xsl:apply-templates />
79 <!--===========================================================-->
80 <!-- Tagi PARAGRAFOWE -->
81 <!--===========================================================-->
83 <xsl:template match="autor_utworu" mode="poczatek">
84 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
85 <xsl:apply-templates />
89 <xsl:template match="autor_utworu" />
90 <xsl:template match="autor_rozdzialu">
91 <xsl:apply-templates />
94 <xsl:template match="dzielo_nadrzedne" mode="poczatek">
95 <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
96 <xsl:apply-templates />
100 <xsl:template match="dzielo_nadrzedne" />
102 <xsl:template match="nazwa_utworu" mode="poczatek" >
103 <h2 class="intitle" xmlns="http://www.w3.org/1999/xhtml">
104 <xsl:apply-templates />
108 <xsl:template match="nazwa_utworu" />
110 <xsl:template match="podtytul" mode="poczatek">
111 <h2 class="insubtitle" xmlns="http://www.w3.org/1999/xhtml">
112 <xsl:apply-templates />
116 <xsl:template match="podtytul" />
118 <xsl:template match="naglowek_czesc|srodtytul">
119 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
120 <xsl:apply-templates />
124 <xsl:template match="naglowek_akt">
125 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
126 <xsl:apply-templates />
130 <xsl:template match="naglowek_scena">
131 <a xmlns="http://www.w3.org/1999/xhtml"></a>
132 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
133 <xsl:apply-templates />
137 <xsl:template match="naglowek_podrozdzial">
138 <a xmlns="http://www.w3.org/1999/xhtml"></a>
139 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
140 <xsl:apply-templates />
144 <xsl:template match="autor_rozdzialu">
147 <xsl:template match="naglowek_rozdzial">
148 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
149 <xsl:if test="name(following-sibling::*[1])='autor_rozdzialu'">
150 <xsl:value-of select="following-sibling::*[1]/text()"/> -
152 <xsl:apply-templates />
156 <xsl:template match="naglowek_osoba">
157 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
158 <xsl:apply-templates />
162 <xsl:template match="miejsce_czas">
163 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
164 <xsl:apply-templates />
168 <xsl:template match="didaskalia">
169 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
170 <xsl:apply-templates />
174 <xsl:template match="akap|akap_dialog|akap_cd">
175 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
176 <xsl:apply-templates />
180 <xsl:template match="strofa">
181 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
182 <xsl:apply-templates />
183 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
186 <xsl:template match="wers_normalny">
187 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
188 <xsl:apply-templates />
192 <xsl:template match="wers_akap">
193 <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">
194 <xsl:apply-templates />
198 <xsl:template match="wers_wciety">
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[@typ!='']">
205 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
206 <xsl:attribute name="style">
207 margin-left: <xsl:value-of select="@typ" />em;
209 <xsl:apply-templates />
213 <xsl:template match="wers_cd">
214 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
215 <xsl:apply-templates />
219 <xsl:template match="motto_podpis">
220 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
221 <xsl:apply-templates />
225 <xsl:template match="lista">
227 <xsl:apply-templates />
231 <xsl:template match="punkt">
232 <li><xsl:apply-templates /></li>
235 <xsl:template match="www">
237 <xsl:attribute name="href">
238 <xsl:value-of select="text()"/>
240 <xsl:value-of select="text()"/>
244 <xsl:template match="link">
246 <xsl:attribute name="href">
247 <xsl:value-of select="@url"/>
249 <xsl:value-of select="text()"/>
254 <!--===========================================================-->
255 <!-- Tagi LINIOWE -->
256 <!--===========================================================-->
258 <xsl:template match="slowo_obce">
259 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
260 <xsl:apply-templates />
264 <xsl:template match="mat" >
265 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
266 <xsl:apply-templates />
270 <xsl:template match="didask_tekst" >
271 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
272 <xsl:apply-templates />
276 <xsl:template match="tytul_dziela" >
277 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
278 <xsl:if test="@typ = '1'" >„</xsl:if>
279 <xsl:apply-templates />
280 <xsl:if test="@typ = '1'">”</xsl:if>
284 <xsl:template match="wyroznienie" >
285 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
286 <xsl:apply-templates />
290 <xsl:template match="osoba" >
291 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
292 <xsl:apply-templates />
296 <xsl:template match="naglowek_listy" >
297 <xsl:apply-templates />
300 <xsl:template match="lista_osoba" >
301 <li xmlns="http://www.w3.org/1999/xhtml">
302 <xsl:apply-templates />
306 <!--===========================================================-->
307 <!-- Tagi STANDALONE -->
308 <!--===========================================================-->
310 <xsl:template match="sekcja_swiatlo">
311 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
314 <xsl:template match="sekcja_asterysk">
315 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
318 <xsl:template match="separator_linia">
319 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
322 <!--===========================================================-->
323 <!-- Tagi SPECJALNE -->
324 <!--===========================================================-->
326 <xsl:template match="motyw" />
328 <!--===========================================================-->
329 <!-- Tagi IGNOROWANE -->
330 <!--===========================================================-->
332 <xsl:template match="extra" />
334 <xsl:template match="pe|pa|pr|pt" >
335 <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
336 xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
339 <xsl:template match="uwaga" />
341 <xsl:template match="nota_red" />
343 <!--pominięcie tych metadanych-->
344 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
346 <!--===========================================================-->
347 <!-- Tagi TEKSTOWE -->
348 <!--===========================================================-->
350 <xsl:template match="text()" >
351 <xsl:value-of select="." />
354 <xsl:template match="text()" >
355 <xsl:value-of select="." />