1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/">
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" />
13 <xsl:value-of select="//dc:title"/>
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 <xsl:if test="not(@typ!='redp' or @typ!='redk')">
40 <div class="note" xmlns="http://www.w3.org/1999/xhtml">
41 <xsl:apply-templates />
46 <xsl:template match="lista_osob" >
47 <div class="person-list" xmlns="http://www.w3.org/1999/xhtml">
48 <div class="h3" xmlns="http://www.w3.org/1999/xhtml">
49 <xsl:apply-templates select="child::naglowek_listy" />
51 <ol xmlns="http://www.w3.org/1999/xhtml">
52 <xsl:apply-templates select="lista_osoba" />
57 <xsl:template match="dedykacja">
58 <div class="dedication" xmlns="http://www.w3.org/1999/xhtml">
59 <xsl:apply-templates />
63 <xsl:template match="kwestia">
64 <div class="kwestia" xmlns="http://www.w3.org/1999/xhtml">
65 <xsl:apply-templates select="strofa|akapit|didaskalia|akap " />
69 <xsl:template match="dlugi_cytat|poezja_cyt">
70 <div class="block" xmlns="http://www.w3.org/1999/xhtml">
71 <xsl:apply-templates />
75 <xsl:template match="motto">
76 <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
77 <xsl:apply-templates />
81 <!--===========================================================-->
82 <!-- Tagi PARAGRAFOWE -->
83 <!--===========================================================-->
85 <xsl:template match="autor_utworu" mode="poczatek">
86 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
87 <xsl:apply-templates />
91 <xsl:template match="autor_utworu" />
92 <xsl:template match="autor_rozdzialu"/>
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="naglowek_podpodrozdzial">
145 <a xmlns="http://www.w3.org/1999/xhtml"></a>
146 <div class="p" xmlns="http://www.w3.org/1999/xhtml">
147 <xsl:apply-templates />
152 <xsl:template match="autor_rozdzialu">
155 <xsl:template match="naglowek_rozdzial">
156 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
157 <xsl:apply-templates />
159 <div class="info" xmlns="http://www.w3.org/1999/xhtml">
160 <xsl:if test="name(following-sibling::*[1])='autor_rozdzialu'">
161 <xsl:value-of select="following-sibling::*[1]/text()"/>
166 <xsl:template match="naglowek_osoba">
167 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
168 <xsl:apply-templates />
172 <xsl:template match="miejsce_czas">
173 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
174 <xsl:apply-templates />
178 <xsl:template match="didaskalia">
179 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
180 <xsl:apply-templates />
184 <xsl:template match="akap|akap_dialog|akap_cd">
185 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
186 <xsl:apply-templates />
190 <xsl:template match="strofa">
191 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
192 <xsl:apply-templates />
193 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
196 <xsl:template match="wers_normalny">
197 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
198 <xsl:apply-templates />
202 <xsl:template match="wers_akap">
203 <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">
204 <xsl:apply-templates />
208 <xsl:template match="wers_wciety">
209 <div class="verse" style='margin-left:1em;' xmlns="http://www.w3.org/1999/xhtml">
210 <xsl:apply-templates />
214 <xsl:template match="wers_wciety[@typ!='']">
215 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
216 <xsl:attribute name="style">
217 margin-left: <xsl:value-of select="@typ" />em;
219 <xsl:apply-templates />
223 <xsl:template match="wers_cd">
224 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
225 <xsl:apply-templates />
229 <xsl:template match="motto_podpis">
230 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
231 <xsl:apply-templates />
235 <xsl:template match="lista">
237 <xsl:apply-templates />
241 <xsl:template match="punkt">
242 <li><xsl:apply-templates /></li>
245 <xsl:template match="www">
247 <xsl:attribute name="href">
248 <xsl:value-of select="text()"/>
250 <xsl:value-of select="text()"/>
254 <xsl:template match="link">
256 <xsl:attribute name="href">
257 <xsl:value-of select="@url"/>
259 <xsl:value-of select="text()"/>
264 <!--===========================================================-->
265 <!-- Tagi LINIOWE -->
266 <!--===========================================================-->
268 <xsl:template match="slowo_obce">
269 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
270 <xsl:apply-templates />
274 <xsl:template match="mat" >
275 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
276 <xsl:apply-templates />
280 <xsl:template match="didask_tekst" >
281 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
282 <xsl:apply-templates />
286 <xsl:template match="tytul_dziela" >
287 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
288 <xsl:if test="@typ = '1'" >„</xsl:if>
289 <xsl:apply-templates />
290 <xsl:if test="@typ = '1'">”</xsl:if>
294 <xsl:template match="wyroznienie" >
295 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
296 <xsl:apply-templates />
300 <xsl:template match="osoba" >
301 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
302 <xsl:apply-templates />
306 <xsl:template match="naglowek_listy" >
307 <xsl:apply-templates />
310 <xsl:template match="lista_osoba" >
311 <li xmlns="http://www.w3.org/1999/xhtml">
312 <xsl:apply-templates />
316 <!--===========================================================-->
317 <!-- Tagi STANDALONE -->
318 <!--===========================================================-->
320 <xsl:template match="sekcja_swiatlo">
321 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
324 <xsl:template match="sekcja_asterysk">
325 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
328 <xsl:template match="separator_linia">
329 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
332 <!--===========================================================-->
333 <!-- Tagi SPECJALNE -->
334 <!--===========================================================-->
336 <xsl:template match="motyw" />
338 <!--===========================================================-->
339 <!-- Tagi IGNOROWANE -->
340 <!--===========================================================-->
342 <xsl:template match="extra" />
344 <xsl:template match="pe|pa|pr|pt" >
345 <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
346 xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
349 <xsl:template match="uwaga" />
351 <xsl:template match="nota_red" />
353 <!--pominięcie tych metadanych-->
354 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
356 <xsl:template match="latex" />
358 <!--===========================================================-->
359 <!-- Tagi TEKSTOWE -->
360 <!--===========================================================-->
362 <xsl:template match="text()" >
363 <xsl:value-of select="." />
366 <xsl:template match="text()" >
367 <xsl:value-of select="." />
370 <!--===========================================================-->
371 <!-- Tagi ILUSTRACJE -->
372 <!--===========================================================-->
373 <xsl:template match="ilustr" >
375 <xsl:attribute name="src"><xsl:value-of select="@src"/>.<xsl:choose><xsl:when test="@extbitmap"><xsl:value-of select="@extbitmap"/></xsl:when><xsl:otherwise><xsl:value-of select="@ext"/></xsl:otherwise></xsl:choose></xsl:attribute>