-<?xml version="1.0" encoding="utf-8"?>\r
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
- <xsl:output method="html" version="1.0" encoding="utf-8" />\r
- <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />\r
- <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />\r
-\r
- <xsl:template match="/" >\r
- <xsl:element name="html" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:element name="head">\r
- <link rel="stylesheet" href="style.css" type="text/css" />\r
- <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />\r
- <title>\r
- WolneLektury.pl\r
- </title>\r
- </xsl:element>\r
- <xsl:element name="body" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:element name="div" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:attribute name="id">book-text</xsl:attribute>\r
- <xsl:if test="//nazwa_utworu">\r
- <!--h1 xmlns="http://www.w3.org/1999/xhtml"-->\r
- <xsl:apply-templates select=" //nazwa_utworu" mode="poczatek"/>\r
- <!--/h1-->\r
- </xsl:if>\r
- <xsl:apply-templates />\r
- </xsl:element>\r
- </xsl:element>\r
- </xsl:element>\r
- </xsl:template>\r
-\r
- <!--===========================================================-->\r
- <!-- Tagi BLOKOWE -->\r
- <!--===========================================================-->\r
-\r
- <xsl:template match="nota">\r
- <div class="note" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="lista_osob" >\r
- <div class="person-list" xmlns="http://www.w3.org/1999/xhtml">\r
- <div class="h3" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates select="child::naglowek_listy" />\r
- </div>\r
- <ol xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates select="lista_osoba" />\r
- </ol>\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="dedykacja">\r
- <div class="dedication" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="kwestia">\r
- <div class="kwestia" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates select="strofa|akapit|didaskalia|akap " />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="dlugi_cytat|poezja_cyt">\r
- <div class="block" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="motto">\r
- <div class="motto" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <!--===========================================================-->\r
- <!-- Tagi PARAGRAFOWE -->\r
- <!--===========================================================-->\r
-\r
- <xsl:template match="autor_utworu" mode="poczatek">\r
- <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="autor_utworu" />\r
-\r
- <xsl:template match="dzielo_nadrzedne" mode="poczatek">\r
- <h2 class="collection" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="dzielo_nadrzedne" />\r
-\r
- <xsl:template match="nazwa_utworu" mode="poczatek" >\r
- <h2 class="author" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="nazwa_utworu" />\r
-\r
- <xsl:template match="podtytul" mode="poczatek">\r
- <h2 class="subtitle" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="podtytul" />\r
-\r
- <xsl:template match="naglowek_czesc|srodtytul">\r
- <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="naglowek_akt">\r
- <h2 class="h2" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="naglowek_scena">\r
- <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>\r
- <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="naglowek_podrozdzial">\r
- <a id="sub{@sub}" xmlns="http://www.w3.org/1999/xhtml"></a>\r
- <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="naglowek_rozdzial">\r
- <h2 class="h3" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="naglowek_osoba">\r
- <h2 class="h4" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </h2>\r
- </xsl:template>\r
-\r
- <xsl:template match="miejsce_czas">\r
- <div class="place-and-time" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="didaskalia">\r
- <div class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="akap|akap_dialog|akap_cd">\r
- <div class="paragraph" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="strofa">\r
- <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_normalny">\r
- <div class="verse" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_wciety">\r
- <div class="verse" style="padding-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_wciety[@typ='1']">\r
- <div class="verse" style="padding-left: 1em;" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_wciety[@typ='2']">\r
- <div class="verse" style="padding-left: 2em;" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_wciety[@typ='3']">\r
- <div class="verse" style="padding-left: 3em;" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_wciety[@typ='4']">\r
- <div class="verse" style="padding-left: 4em;" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_wciety[@typ='5']">\r
- <div class="verse" style="padding-left: 5em;" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_wciety[@typ='6']">\r
- <div class="verse" style="padding-left: 6em;" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="wers_cd">\r
- <div class="verse" style="padding-left: 12em;" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <xsl:template match="motto_podpis">\r
- <div class="motto_podpis" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </div>\r
- </xsl:template>\r
-\r
- <!--===========================================================-->\r
- <!-- Tagi LINIOWE -->\r
- <!--===========================================================-->\r
-\r
- <xsl:template match="slowo_obce">\r
- <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </em>\r
- </xsl:template>\r
-\r
- <xsl:template match="mat" >\r
- <em class="math" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </em>\r
- </xsl:template>\r
-\r
- <xsl:template match="didask_tekst" >\r
- <em class="didaskalia" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </em>\r
- </xsl:template>\r
-\r
- <xsl:template match="tytul_dziela" >\r
- <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:if test="@typ = '1'" >„</xsl:if>\r
- <xsl:apply-templates />\r
- <xsl:if test="@typ = '1'">”</xsl:if>\r
- </em>\r
- </xsl:template>\r
-\r
- <xsl:template match="wyroznienie" >\r
- <em class="author-emphasis" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </em>\r
- </xsl:template>\r
-\r
- <xsl:template match="osoba" >\r
- <em class="person" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </em>\r
- </xsl:template>\r
-\r
- <xsl:template match="naglowek_listy" >\r
- <xsl:apply-templates />\r
- </xsl:template>\r
-\r
- <xsl:template match="lista_osoba" >\r
- <li xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates />\r
- </li>\r
- </xsl:template>\r
-\r
- <!--===========================================================-->\r
- <!-- Tagi STANDALONE -->\r
- <!--===========================================================-->\r
-\r
- <xsl:template match="sekcja_swiatlo">\r
- <hr class="spacer" xmlns="http://www.w3.org/1999/xhtml"></hr>\r
- </xsl:template>\r
-\r
- <xsl:template match="sekcja_asterysk">\r
- <p class="spacer-asterisk" xmlns="http://www.w3.org/1999/xhtml">*</p>\r
- </xsl:template>\r
-\r
- <xsl:template match="separator_linia">\r
- <hr class="spacer-line" xmlns="http://www.w3.org/1999/xhtml"></hr>\r
- </xsl:template>\r
-\r
- <!--===========================================================-->\r
- <!-- Tagi SPECJALNE -->\r
- <!--===========================================================-->\r
-\r
- <!--xsl:template match="motyw" >\r
- <a class="theme-begin" xmlns="http://www.w3.org/1999/xhtml">\r
- <xsl:apply-templates select="text()" />\r
- </a>\r
- </xsl:template-->\r
- <xsl:template match="motyw" />\r
-\r
- <!--===========================================================-->\r
- <!-- Tagi IGNOROWANE -->\r
- <!--===========================================================-->\r
-\r
- <xsl:template match="pe|pa|pr|pt" />\r
-\r
- <xsl:template match="extra" />\r
-\r
- <xsl:template match="pe|pa|pr|pt" >\r
- <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}" \r
- xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>\r
- </xsl:template>\r
-\r
- <xsl:template match="uwaga" />\r
-\r
- <!--pominięcie tych metadanych-->\r
- <xsl:template match="rdf:RDF" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />\r
-\r
- <!--===========================================================-->\r
- <!-- Tagi TEKSTOWE -->\r
- <!--===========================================================-->\r
-\r
- <xsl:template match="text()" >\r
- <xsl:value-of select="." disable-output-escaping="yes"/>\r
- </xsl:template>\r
-\r
- <xsl:template match="text()" >\r
- <xsl:value-of select="." disable-output-escaping="yes"/>\r
- </xsl:template>\r
-\r
-</xsl:stylesheet>
\ No newline at end of file