whitespace, line breaks etc.
[librarian.git] / librarian / epub / xsltAnnotations.xsl
index d0af8ab..bc5693e 100644 (file)
@@ -1,77 +1,77 @@
-<?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
-    <html xmlns="http://www.w3.org/1999/xhtml">\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>Przypisy</xsl:text>\r
-        </title>\r
-      </head>\r
-      <body>\r
-        <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">\r
-          <div id="footnotes" xmlns="http://www.w3.org/1999/xhtml">\r
-            <h2 xmlns="http://www.w3.org/1999/xhtml">\r
-              Przypisy:\r
-            </h2>\r
-            <xsl:apply-templates mode="przypis" />\r
-          </div>\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="pa|pe|pr|pt" mode="przypis">\r
-    <div xmlns="http://www.w3.org/1999/xhtml">\r
-      <p id="annotation-{@number}" xmlns="http://www.w3.org/1999/xhtml"></p>\r
-      <a class="annotation" href="part{@part}.html#anchor-{@number}" xmlns="http://www.w3.org/1999/xhtml">\r
-        [<xsl:value-of select="@number" />]\r
-      </a>\r
-      <p xmlns="http://www.w3.org/1999/xhtml">\r
-        <xsl:apply-templates />\r
-      </p>\r
-    </div>\r
-  </xsl:template>\r
-\r
-  <xsl:template match="slowo_obce">\r
-    <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">\r
-      <xsl:apply-templates select="text()" />\r
-    </em>\r
-  </xsl:template>\r
-\r
-  <xsl:template match="akap|akap_cd">\r
-    <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">\r
-      <xsl:apply-templates />\r
-    </p>\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="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="wers_normalny">\r
-    <p class="verse" xmlns="http://www.w3.org/1999/xhtml">\r
-      <xsl:apply-templates />\r
-    </p>\r
-  </xsl:template>\r
-\r
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  <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="/">
+    <html xmlns="http://www.w3.org/1999/xhtml">
+      <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>Przypisy</xsl:text>
+        </title>
+      </head>
+      <body>
+        <div id="book-text" xmlns="http://www.w3.org/1999/xhtml">
+          <div id="footnotes" xmlns="http://www.w3.org/1999/xhtml">
+            <h2 xmlns="http://www.w3.org/1999/xhtml">
+              Przypisy:
+            </h2>
+            <xsl:apply-templates mode="przypis" />
+          </div>
+        </div>
+      </body>
+    </html>
+  </xsl:template>
+
+  <xsl:template match="text()" >
+    <xsl:value-of select="." disable-output-escaping="yes"/>
+  </xsl:template>
+
+  <xsl:template match="pa|pe|pr|pt" mode="przypis">
+    <div xmlns="http://www.w3.org/1999/xhtml">
+      <p id="annotation-{@number}" xmlns="http://www.w3.org/1999/xhtml"></p>
+      <a class="annotation" href="part{@part}.html#anchor-{@number}" xmlns="http://www.w3.org/1999/xhtml">
+        [<xsl:value-of select="@number" />]
+      </a>
+      <p xmlns="http://www.w3.org/1999/xhtml">
+        <xsl:apply-templates />
+      </p>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="slowo_obce">
+    <em class="foreign-word" xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates select="text()" />
+    </em>
+  </xsl:template>
+
+  <xsl:template match="akap|akap_cd">
+    <p class="paragraph" xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates />
+    </p>
+  </xsl:template>
+
+  <xsl:template match="strofa">
+    <div class="stanza" xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates />
+    </div>
+  </xsl:template>
+
+  <xsl:template match="tytul_dziela" >
+    <em class="book-title" xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:if test="@typ = '1'" >„</xsl:if>
+      <xsl:apply-templates />
+      <xsl:if test="@typ = '1'">”</xsl:if>
+    </em>
+  </xsl:template>
+
+  <xsl:template match="wers_normalny">
+    <p class="verse" xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:apply-templates />
+    </p>
+  </xsl:template>
+
 </xsl:stylesheet>
\ No newline at end of file