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   <xsl:output method="html" version="1.0" encoding="utf-8" />
 
   8   <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
 
   9   <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
 
  11   <xsl:template match="/">
 
  14         <link rel="stylesheet" href="style.css" type="text/css" />
 
  15         <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
 
  17           <xsl:text>Strona tytułowa</xsl:text>
 
  22           <div class='title-page'>
 
  24               <xsl:when test="//autor_utworu | //nazwa_utworu">
 
  25                 <xsl:apply-templates select="//autor_utworu" mode="poczatek"/>
 
  26                 <xsl:apply-templates select="//nazwa_utworu | //podtytul | //dzielo_nadrzedne" mode="poczatek"/>
 
  29                 <xsl:apply-templates select="//dc:creator" mode="poczatek"/>
 
  30                 <xsl:apply-templates select="//dc:title | //podtytul | //dzielo_nadrzedne" mode="poczatek"/>
 
  35           <p class="info"> </p>
 
  37           <xsl:call-template name="translators" />
 
  39           <xsl:if test="utwor/@working-copy">
 
  40             <p class="info">[Kopia robocza]</p>
 
  43           <xsl:if test="not(utwor/@less-advertising)">
 
  46                   <xsl:attribute name="href">
 
  47                       <xsl:value-of select="//dc:identifier.url" />
 
  50               podobnie jak tysiące innych, jest dostępna on-line na stronie
 
  51               <a href="http://www.wolnelektury.pl/">wolnelektury.pl</a>.
 
  56             Utwór opracowany został w ramach projektu<a href="http://www.wolnelektury.pl/"> Wolne Lektury</a> przez<a href="http://www.nowoczesnapolska.org.pl/"> fundację Nowoczesna Polska</a>.
 
  59           <p class="footer info">
 
  60             <a href="http://www.wolnelektury.pl/"><img src="logo_wolnelektury.png" alt="WolneLektury.pl" /></a>
 
  67   <xsl:template match="text()" >
 
  68     <xsl:value-of select="." />
 
  71   <xsl:template match="node()" mode="poczatek">
 
  72     <xsl:value-of select="." />
 
  75   <xsl:template match="dc:creator" mode="poczatek">
 
  77       <xsl:apply-templates mode='person' />
 
  81   <xsl:template match="dc:creator/text()">
 
  83       <xsl:apply-templates mode='person' />
 
  87   <xsl:template name="translators">
 
  88     <xsl:if test="//dc:contributor.translator">
 
  90             <xsl:text>tłum. </xsl:text>
 
  91             <xsl:for-each select="//dc:contributor.translator">
 
  92                 <xsl:if test="position() != 1">, </xsl:if>
 
  93                 <xsl:apply-templates mode="person" />
 
  99   <xsl:template match="text()" mode="person">
 
 100     <xsl:value-of select="wl:person_name(.)" />
 
 103   <xsl:template match="autor_utworu" mode="poczatek">
 
 105       <xsl:apply-templates />
 
 109   <xsl:template match="dzielo_nadrzedne" mode="poczatek">
 
 110     <h2 class="collection" >
 
 111       <xsl:apply-templates />
 
 115   <xsl:template match="nazwa_utworu" mode="poczatek" >
 
 117       <xsl:apply-templates />
 
 121   <xsl:template match="dc:title" mode="poczatek" >
 
 123       <xsl:apply-templates />
 
 127   <xsl:template match="podtytul" mode="poczatek">
 
 128     <h2 class="subtitle" >
 
 129       <xsl:apply-templates />
 
 133   <xsl:template match="pe|pa|pr|pt" />
 
 135   <xsl:template match="extra" />
 
 137   <xsl:template match="motyw" />