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="nota_red">
47 <div class="note_red" xmlns="http://www.w3.org/1999/xhtml">
48 <xsl:apply-templates />
53 <xsl:template match="lista_osob" >
54 <div class="person-list" xmlns="http://www.w3.org/1999/xhtml">
55 <div class="h3" xmlns="http://www.w3.org/1999/xhtml">
56 <xsl:apply-templates select="child::naglowek_listy" />
58 <ol xmlns="http://www.w3.org/1999/xhtml">
59 <xsl:apply-templates select="lista_osoba" />
64 <xsl:template match="dedykacja">
65 <div class="dedication" xmlns="http://www.w3.org/1999/xhtml">
66 <xsl:apply-templates />
70 <xsl:template match="kwestia">
71 <div class="kwestia" xmlns="http://www.w3.org/1999/xhtml">
72 <xsl:apply-templates select="strofa|akapit|didaskalia|akap " />
76 <xsl:template match="dlugi_cytat|poezja_cyt">
77 <div class="block" xmlns="http://www.w3.org/1999/xhtml">
78 <xsl:apply-templates />
82 <xsl:template match="motto">
83 <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
84 <xsl:apply-templates />
88 <!--===========================================================-->
89 <!-- Tagi PARAGRAFOWE -->
90 <!--===========================================================-->
92 <xsl:template match="autor_utworu" mode="poczatek">
93 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
94 <xsl:apply-templates />
98 <xsl:template match="autor_utworu" />
99 <xsl:template match="autor_rozdzialu"/>
101 <xsl:template match="dzielo_nadrzedne" mode="poczatek">
102 <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
103 <xsl:apply-templates />
107 <xsl:template match="dzielo_nadrzedne" />
109 <xsl:template match="nazwa_utworu" mode="poczatek" >
110 <h2 class="intitle" xmlns="http://www.w3.org/1999/xhtml">
111 <xsl:apply-templates />
115 <xsl:template match="nazwa_utworu" />
117 <xsl:template match="podtytul" mode="poczatek">
118 <h2 class="insubtitle" xmlns="http://www.w3.org/1999/xhtml">
119 <xsl:apply-templates />
123 <xsl:template match="podtytul" />
125 <xsl:template match="naglowek_czesc">
126 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
127 <xsl:apply-templates />
131 <xsl:template match="naglowek_akt">
132 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
133 <xsl:apply-templates />
137 <xsl:template match="naglowek_scena">
138 <a xmlns="http://www.w3.org/1999/xhtml"></a>
139 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
140 <xsl:apply-templates />
144 <xsl:template match="naglowek_podrozdzial">
145 <a xmlns="http://www.w3.org/1999/xhtml"></a>
146 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
147 <xsl:apply-templates />
151 <xsl:template match="naglowek_podpodrozdzial|srodtytul">
152 <a xmlns="http://www.w3.org/1999/xhtml"></a>
153 <div class="p" xmlns="http://www.w3.org/1999/xhtml">
154 <xsl:apply-templates />
159 <xsl:template match="autor_rozdzialu">
162 <xsl:template match="naglowek_rozdzial">
163 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
164 <xsl:apply-templates />
166 <div class="info" xmlns="http://www.w3.org/1999/xhtml">
167 <xsl:if test="name(following-sibling::*[1])='autor_rozdzialu'">
168 <xsl:value-of select="following-sibling::*[1]/text()"/>
173 <xsl:template match="naglowek_osoba">
174 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
175 <xsl:apply-templates />
179 <xsl:template match="miejsce_czas">
180 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
181 <xsl:apply-templates />
185 <xsl:template match="didaskalia">
186 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
187 <xsl:apply-templates />
191 <xsl:template match="akap|akap_dialog|akap_cd">
192 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
193 <xsl:apply-templates />
197 <xsl:template match="strofa">
198 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
199 <xsl:apply-templates />
200 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
203 <xsl:template match="wers_normalny">
204 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
205 <xsl:apply-templates />
209 <xsl:template match="wers_akap">
210 <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">
211 <xsl:apply-templates />
215 <xsl:template match="wers_wciety">
216 <div class="verse" style='margin-left:1em;' xmlns="http://www.w3.org/1999/xhtml">
217 <xsl:apply-templates />
221 <xsl:template match="wers_wciety[@typ!='']">
222 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
223 <xsl:attribute name="style">
224 margin-left: <xsl:value-of select="@typ" />em;
226 <xsl:apply-templates />
230 <xsl:template match="wers_cd">
231 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
232 <xsl:apply-templates />
236 <xsl:template match="motto_podpis">
237 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
238 <xsl:apply-templates />
242 <xsl:template match="lista">
244 <xsl:apply-templates />
248 <xsl:template match="punkt">
249 <li><xsl:apply-templates /></li>
252 <xsl:template match="www">
254 <xsl:attribute name="href">
255 <xsl:value-of select="text()"/>
257 <xsl:value-of select="text()"/>
261 <xsl:template match="link">
263 <xsl:attribute name="href">
264 <xsl:value-of select="@url"/>
266 <xsl:value-of select="text()"/>
271 <!--===========================================================-->
272 <!-- Tagi LINIOWE -->
273 <!--===========================================================-->
275 <xsl:template match="slowo_obce">
276 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
277 <xsl:apply-templates />
281 <xsl:template match="mat" >
282 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
283 <xsl:apply-templates />
287 <xsl:template match="didask_tekst" >
288 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
289 <xsl:apply-templates />
293 <xsl:template match="tytul_dziela" >
294 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
295 <xsl:if test="@typ = '1'" >„</xsl:if>
296 <xsl:apply-templates />
297 <xsl:if test="@typ = '1'">”</xsl:if>
301 <xsl:template match="wyroznienie" >
302 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
303 <xsl:apply-templates />
307 <xsl:template match="osoba" >
308 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
309 <xsl:apply-templates />
313 <xsl:template match="naglowek_listy" >
314 <xsl:apply-templates />
317 <xsl:template match="lista_osoba" >
318 <li xmlns="http://www.w3.org/1999/xhtml">
319 <xsl:apply-templates />
323 <!--===========================================================-->
324 <!-- Tagi STANDALONE -->
325 <!--===========================================================-->
327 <xsl:template match="sekcja_swiatlo">
328 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
331 <xsl:template match="sekcja_asterysk">
332 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
335 <xsl:template match="separator_linia">
336 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
339 <!--===========================================================-->
340 <!-- Tagi SPECJALNE -->
341 <!--===========================================================-->
343 <xsl:template match="motyw" />
345 <!--===========================================================-->
346 <!-- Tagi IGNOROWANE -->
347 <!--===========================================================-->
349 <xsl:template match="extra" />
351 <xsl:template match="pe|pa|pr|pt" >
352 <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
353 xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
356 <xsl:template match="uwaga" />
359 <!--pominięcie tych metadanych-->
360 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
362 <xsl:template match="latex" />
364 <!--===========================================================-->
365 <!-- Tagi TEKSTOWE -->
366 <!--===========================================================-->
368 <xsl:template match="text()" >
369 <xsl:value-of select="." />
372 <xsl:template match="text()" >
373 <xsl:value-of select="." />
376 <!--===========================================================-->
377 <!-- Tagi ILUSTRACJE -->
378 <!--===========================================================-->
379 <xsl:template match="ilustr" >
381 <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>
383 <xsl:apply-templates />
386 <xsl:template match="img">
387 <img rel="math formula">
388 <xsl:attribute name="src">
389 <xsl:value-of select="text()"/>
391 <xsl:attribute name="class">latex</xsl:attribute>
395 <xsl:template match="wyimek_extra">