1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:dc="http://purl.org/dc/elements/1.1/"
6 xmlns:wl="http://wolnelektury.pl/functions"
7 xmlns:date="http://exslt.org/dates-and-times">
8 <xsl:output method="html" version="1.0" encoding="utf-8" />
9 <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
10 <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
12 <xsl:template match="utwor">
15 <link rel="stylesheet" href="style.css" type="text/css" />
16 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
18 <xsl:text>Informacje redakcyjne</xsl:text>
23 <xsl:for-each select="//nota[@typ='redk']/*">
25 <xsl:apply-templates select="."/>
33 <xsl:template match="text()" >
34 <xsl:value-of select="." />
37 <xsl:template name="editors">
38 <xsl:if test="@editors">
40 <xsl:text>Opracowanie redakcyjne i przypisy: </xsl:text>
41 <xsl:value-of select="@editors" />.</p>
45 <xsl:template match="dc:contributor.editor|dc:contributor.technical_editor">
46 <br /><xsl:apply-templates mode='person' />
49 <xsl:template match="text()" mode="person">
50 <xsl:value-of select="wl:person_name(.)" />
53 <!-- copied from xsltScheme.xsl -->
55 <!--===========================================================-->
57 <!--===========================================================-->
59 <xsl:template match="nota">
60 <div class="note" xmlns="http://www.w3.org/1999/xhtml">
61 <xsl:apply-templates />
65 <xsl:template match="lista_osob" >
66 <div class="person-list" xmlns="http://www.w3.org/1999/xhtml">
67 <div class="h3" xmlns="http://www.w3.org/1999/xhtml">
68 <xsl:apply-templates select="child::naglowek_listy" />
70 <ol xmlns="http://www.w3.org/1999/xhtml">
71 <xsl:apply-templates select="lista_osoba" />
76 <xsl:template match="dedykacja">
77 <div class="dedication" xmlns="http://www.w3.org/1999/xhtml">
78 <xsl:apply-templates />
82 <xsl:template match="kwestia">
83 <div class="kwestia" xmlns="http://www.w3.org/1999/xhtml">
84 <xsl:apply-templates select="strofa|akapit|didaskalia|akap " />
88 <xsl:template match="dlugi_cytat|poezja_cyt">
89 <div class="block" xmlns="http://www.w3.org/1999/xhtml">
90 <xsl:apply-templates />
94 <xsl:template match="motto">
95 <div class="motto" xmlns="http://www.w3.org/1999/xhtml">
96 <xsl:apply-templates />
100 <!--===========================================================-->
101 <!-- Tagi PARAGRAFOWE -->
102 <!--===========================================================-->
104 <xsl:template match="autor_utworu" mode="poczatek">
105 <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">
106 <xsl:apply-templates />
110 <xsl:template match="autor_utworu" />
111 <xsl:template match="autor_rozdzialu">
112 <xsl:apply-templates />
115 <xsl:template match="dzielo_nadrzedne" mode="poczatek">
116 <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">
117 <xsl:apply-templates />
121 <xsl:template match="dzielo_nadrzedne" />
123 <xsl:template match="nazwa_utworu" mode="poczatek" >
124 <h2 class="intitle" xmlns="http://www.w3.org/1999/xhtml">
125 <xsl:apply-templates />
129 <xsl:template match="nazwa_utworu" />
131 <xsl:template match="podtytul" mode="poczatek">
132 <h2 class="insubtitle" xmlns="http://www.w3.org/1999/xhtml">
133 <xsl:apply-templates />
137 <xsl:template match="podtytul" />
139 <xsl:template match="naglowek_czesc|srodtytul">
140 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
141 <xsl:apply-templates />
145 <xsl:template match="naglowek_akt">
146 <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">
147 <xsl:apply-templates />
151 <xsl:template match="naglowek_scena">
152 <a xmlns="http://www.w3.org/1999/xhtml"></a>
153 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
154 <xsl:apply-templates />
158 <xsl:template match="naglowek_podrozdzial">
159 <a xmlns="http://www.w3.org/1999/xhtml"></a>
160 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
161 <xsl:apply-templates />
165 <xsl:template match="autor_rozdzialu">
168 <xsl:template match="naglowek_rozdzial">
169 <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">
170 <xsl:if test="name(following-sibling::*[1])='autor_rozdzialu'">
171 <xsl:value-of select="following-sibling::*[1]/text()"/> -
173 <xsl:apply-templates />
177 <xsl:template match="naglowek_osoba">
178 <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">
179 <xsl:apply-templates />
183 <xsl:template match="miejsce_czas">
184 <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">
185 <xsl:apply-templates />
189 <xsl:template match="didaskalia">
190 <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
191 <xsl:apply-templates />
195 <xsl:template match="akap|akap_dialog|akap_cd">
196 <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
197 <xsl:apply-templates />
201 <xsl:template match="strofa">
202 <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
203 <xsl:apply-templates />
204 </div><div class='stanza-spacer' xmlns="http://www.w3.org/1999/xhtml"> </div>
207 <xsl:template match="wers_normalny">
208 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
209 <xsl:apply-templates />
213 <xsl:template match="wers_akap">
214 <div class="verse" style="margin-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">
215 <xsl:apply-templates />
219 <xsl:template match="wers_wciety">
220 <div class="verse" style='margin-left:1em;' xmlns="http://www.w3.org/1999/xhtml">
221 <xsl:apply-templates />
225 <xsl:template match="wers_wciety[@typ!='']">
226 <div class="verse" xmlns="http://www.w3.org/1999/xhtml">
227 <xsl:attribute name="style">
228 margin-left: <xsl:value-of select="@typ" />em;
230 <xsl:apply-templates />
234 <xsl:template match="wers_cd">
235 <div class="verse" style="margin-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">
236 <xsl:apply-templates />
240 <xsl:template match="motto_podpis">
241 <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">
242 <xsl:apply-templates />
246 <xsl:template match="lista">
248 <xsl:apply-templates />
252 <xsl:template match="punkt">
253 <li><xsl:apply-templates /></li>
256 <xsl:template match="www">
258 <xsl:attribute name="href">
259 <xsl:value-of select="text()"/>
261 <xsl:value-of select="text()"/>
265 <xsl:template match="link">
267 <xsl:attribute name="href">
268 <xsl:value-of select="@url"/>
270 <xsl:value-of select="text()"/>
275 <!--===========================================================-->
276 <!-- Tagi LINIOWE -->
277 <!--===========================================================-->
279 <xsl:template match="slowo_obce">
280 <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
281 <xsl:apply-templates />
285 <xsl:template match="mat" >
286 <em class="math" xmlns="http://www.w3.org/1999/xhtml">
287 <xsl:apply-templates />
291 <xsl:template match="didask_tekst" >
292 <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">
293 <xsl:apply-templates />
297 <xsl:template match="tytul_dziela" >
298 <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
299 <xsl:if test="@typ = '1'" >„</xsl:if>
300 <xsl:apply-templates />
301 <xsl:if test="@typ = '1'">”</xsl:if>
305 <xsl:template match="wyroznienie" >
306 <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">
307 <xsl:apply-templates />
311 <xsl:template match="osoba" >
312 <em class="person" xmlns="http://www.w3.org/1999/xhtml">
313 <xsl:apply-templates />
317 <xsl:template match="naglowek_listy" >
318 <xsl:apply-templates />
321 <xsl:template match="lista_osoba" >
322 <li xmlns="http://www.w3.org/1999/xhtml">
323 <xsl:apply-templates />
327 <!--===========================================================-->
328 <!-- Tagi STANDALONE -->
329 <!--===========================================================-->
331 <xsl:template match="sekcja_swiatlo">
332 <p class="spacer" xmlns="http://www.w3.org/1999/xhtml"> </p>
335 <xsl:template match="sekcja_asterysk">
336 <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>
339 <xsl:template match="separator_linia">
340 <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>
343 <!--===========================================================-->
344 <!-- Tagi SPECJALNE -->
345 <!--===========================================================-->
347 <xsl:template match="motyw" />
349 <!--===========================================================-->
350 <!-- Tagi IGNOROWANE -->
351 <!--===========================================================-->
353 <xsl:template match="extra" />
355 <xsl:template match="pe|pa|pr|pt" >
356 <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
357 xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
360 <xsl:template match="uwaga" />
362 <xsl:template match="nota_red" />
364 <!--pominięcie tych metadanych-->
365 <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
367 <xsl:template match="latex" />
369 <!--===========================================================-->
370 <!-- Tagi TEKSTOWE -->
371 <!--===========================================================-->
373 <xsl:template match="text()" >
374 <xsl:value-of select="." />
378 <!--===========================================================-->
379 <!-- Tagi ILUSTRACJE -->
380 <!--===========================================================-->
381 <xsl:template match="ilustr" >
383 <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>