moglen work in progress
[librarian.git] / librarian / epub / xsltLast.xsl
index 6cb2748..bb83777 100644 (file)
@@ -1,88 +1,91 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<xsl:stylesheet version="1.0"\r
-    xmlns="http://www.w3.org/1999/xhtml"\r
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
-    xmlns:dc="http://purl.org/dc/elements/1.1/"\r
-    xmlns:wl="http://wolnelektury.pl/functions"\r
-    xmlns:date="http://exslt.org/dates-and-times">\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
-    <html>\r
-      <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
-          <xsl:text>Strona redakcyjna</xsl:text>\r
-        </title>\r
-      </head>\r
-      <body>\r
-        <div id="book-text" >\r
-          <p class="info">\r
-              <xsl:choose>\r
-                  <xsl:when test="//dc:rights.license">\r
-                      Ten utwór jest udostepniony na licencji\r
-                      <a>\r
-                          <xsl:attribute name="href">\r
-                              <xsl:value-of select="//dc:rights.license" />\r
-                          </xsl:attribute>\r
-                          <xsl:value-of select="//dc:rights" />\r
-                      </a>\r
-                  </xsl:when>\r
-                  <xsl:otherwise>\r
-                    Ten utwór nie jest chroniony prawem autorskim i znajduje się w domenie\r
-                    publicznej, co oznacza, że możesz go swobodnie wykorzystywać, publikować\r
-                    i rozpowszechniać. Jeśli utwór opatrzony jest dodatkowymi materiałami\r
-                    (przypisy, motywy literackie etc.) które podlegają prawu autorskiemu, to\r
-                    te dodatkowe materiały udostępnione są na licencji\r
-                    <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons\r
-                    Uznanie Autorstwa - Na Tych Samych Warunkach 3.0 PL</a>.\r
-                  </xsl:otherwise>\r
-              </xsl:choose>\r
-          </p>\r
-\r
-          <p class="info">Źródło: <a>\r
-              <xsl:attribute name="href">\r
-                  <xsl:value-of select="//dc:identifier.url" />\r
-              </xsl:attribute>\r
-              <xsl:attribute name="title">\r
-                  <xsl:value-of select="wl:person_name(//dc:creator/text())" />, <xsl:value-of select="//dc:title" />\r
-              </xsl:attribute>\r
-              <xsl:value-of select="//dc:identifier.url" />\r
-          </a></p>\r
-\r
-          <xsl:if test="//dc:source" >\r
-            <p class="info">Na podstawie: <xsl:value-of select="//dc:source" /></p>\r
-          </xsl:if>\r
-\r
-          <xsl:if test="//dc:contributor.editor|//dc:contributor.technical_editor">\r
-              <p class="info">\r
-                Opracowanie redakcyjne i przypisy:\r
-                <xsl:apply-templates select="//dc:contributor.editor|//dc:contributor.technical_editor" />\r
-              </p>\r
-          </xsl:if>\r
-\r
-          <p class="info">&#160;</p>\r
-          <p class="minor info">\r
-              Plik wygenerowany dnia <span id="file_date"><xsl:value-of select="substring(date:date(), 1, 10)" /></span>.\r
-          </p>\r
-\r
-        </div>\r
-      </body>\r
-    </html>\r
-  </xsl:template>\r
-\r
-  <xsl:template match="text()" >\r
-    <xsl:value-of select="." disable-output-escaping="yes" />\r
-  </xsl:template>\r
-\r
-  <xsl:template match="dc:contributor.editor|dc:contributor.technical_editor">\r
-      <br /><xsl:apply-templates mode='person' />\r
-  </xsl:template>\r
-\r
-  <xsl:template match="text()" mode="person">\r
-    <xsl:value-of select="wl:person_name(.)" />\r
-  </xsl:template>\r
-</xsl:stylesheet>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+    xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:wl="http://wolnelektury.pl/functions"
+    xmlns:date="http://exslt.org/dates-and-times">
+  <xsl:output method="html" version="1.0" encoding="utf-8" />
+  <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
+  <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
+
+  <xsl:template match="utwor">
+    <html>
+      <head>
+        <link rel="stylesheet" href="style.css" type="text/css" />
+        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
+        <title>
+          <xsl:text>Credits</xsl:text>
+        </title>
+      </head>
+      <body>
+        <div id="book-text" >
+         
+
+<p>The Future of Copyright 2.0 Contest is a~part of Future of Copyright Project supported by Trust for Civil Society in Central and Eastern Europe</p>
+
+<!-- \includegraphics[scale=.2]<p>trust.eps} -->
+
+<p>This book is available under the terms of Creative Commons Attribution-ShareAlike 3.0 Unported License (read more:
+<a href="http://creativecommons.org/licenses/by-sa/3.0/">http://creativecommons.org/licenses/by-sa/3.0/</a>) <br/>
+Published by Modern Poland Foundation, Warsaw 2013 </p>
+
+<p>Technical editor: Paulina Choromańska <br/>
+Book design: Jakub Waluchowski<br/>
+Typography: Marcin Koziej </p>
+
+<p>Modern Poland Fundation <br/>
+Marszalkowska St. 84/92 app. 125 <br/>
+00-514 Warsaw <br/>
+tel/fax: +48 22 621-30-17 <br/>
+email: fundacja@nowoczesnapolska.org.pl <br/> 
+</p>
+
+<p>If you wish to support our projects, feel free to make a~donation via our secure online payment service: 
+<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=L2CLCXHZCWYJN">PLN</a> or <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=XVC8XD7DBGV6N">USD</a>
+ or direct payment account number: 59 1030 0019 0109 8530 0040 5685 </p>
+
+<p> Thank you for your support.</p>
+
+
+
+
+
+<!--          <div class="info">
+          <img src="jedenprocent.png" alt="Logo 1%" />
+          <div>Przekaż 1% podatku na rozwój Wolnych Lektur.</div>
+          <div>Nazwa organizacji: Fundacja Nowoczesna Polska</div>
+          <div>KRS 0000070056</div>
+          </div>-->
+
+          <p class="info">&#160;</p>
+          <p class="minor info">
+              Generated on <span id="file_date"><xsl:value-of select="substring(date:date(), 1, 10)" /></span>.
+          </p>
+
+        </div>
+      </body>
+    </html>
+  </xsl:template>
+
+  <xsl:template match="text()" >
+    <xsl:value-of select="." />
+  </xsl:template>
+
+  <xsl:template name="editors">
+    <xsl:if test="@editors">
+        <p class="info">
+            <xsl:text>Opracowanie redakcyjne i przypisy: </xsl:text>
+            <xsl:value-of select="@editors" />.</p>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template match="dc:contributor.editor|dc:contributor.technical_editor">
+      <br /><xsl:apply-templates mode='person' />
+  </xsl:template>
+
+  <xsl:template match="text()" mode="person">
+    <xsl:value-of select="wl:person_name(.)" />
+  </xsl:template>
+</xsl:stylesheet>