X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/4edcff3a9e2a4bb2ecb7ab228e5bf37dd28d7e14..f7260ec22a6bcb39fe800ac21f335c2c903a2072:/librarian/epub/xsltAnnotations.xsl?ds=sidebyside

diff --git a/librarian/epub/xsltAnnotations.xsl b/librarian/epub/xsltAnnotations.xsl
index d0af8ab..f3e6443 100644
--- a/librarian/epub/xsltAnnotations.xsl
+++ b/librarian/epub/xsltAnnotations.xsl
@@ -1,77 +1,78 @@
-<?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
+<?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="." />
+  </xsl:template>
+
+  <xsl:template match="pa|pe|pr|pt" mode="przypis">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="annotation">
+      <p id="annotation-{@number}" xmlns="http://www.w3.org/1999/xhtml"></p>
+      <a class="annotation-anchor" href="part{@part}.html#anchor-{@number}" xmlns="http://www.w3.org/1999/xhtml">
+        [<xsl:value-of select="@number" />]
+      </a>
+      <p class="annotation-body" xmlns="http://www.w3.org/1999/xhtml">
+        <xsl:apply-templates />
+        <xsl:if test="name()='pa'"> [przypis autorski]</xsl:if>
+      </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>