Transition from square bracket to superscripted footnotes
authorRobert Błaut <listy@blaut.biz>
Wed, 15 Jan 2014 21:53:26 +0000 (22:53 +0100)
committerRobert Błaut <listy@blaut.biz>
Wed, 15 Jan 2014 21:53:26 +0000 (22:53 +0100)
librarian/epub/xsltAnnotations.xsl
librarian/epub/xsltScheme.xsl

index f3e6443..2deef8d 100644 (file)
@@ -34,7 +34,7 @@
     <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">
     <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" />]
+        <sup xmlns="http://www.w3.org/1999/xhtml"><xsl:value-of select="@number" /></sup>
       </a>
       <p class="annotation-body" xmlns="http://www.w3.org/1999/xhtml">
         <xsl:apply-templates />
       </a>
       <p class="annotation-body" xmlns="http://www.w3.org/1999/xhtml">
         <xsl:apply-templates />
index 3ddcf97..d2d7871 100644 (file)
   <xsl:template match="extra" />
 
   <xsl:template match="pe|pa|pr|pt" >
   <xsl:template match="extra" />
 
   <xsl:template match="pe|pa|pr|pt" >
-    <a id="anchor-{.}" class="anchor" href="annotations.html#annotation-{.}"
-       xmlns="http://www.w3.org/1999/xhtml">[<xsl:apply-templates />]</a>
+    <a class="anchor" id="anchor-{.}" href="annotations.html#annotation-{.}"
+       xmlns="http://www.w3.org/1999/xhtml"><sup xmlns="http://www.w3.org/1999/xhtml"><xsl:apply-templates /></sup></a>
   </xsl:template>
 
   <xsl:template match="uwaga" />
   </xsl:template>
 
   <xsl:template match="uwaga" />