]> granicus.if.org Git - docbook-dsssl/commitdiff
Make footnote numbers smaller and superscripted
authorNorman Walsh <ndw@nwalsh.com>
Fri, 1 Mar 2002 08:31:54 +0000 (08:31 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 1 Mar 2002 08:31:54 +0000 (08:31 +0000)
xsl/fo/footnote.xsl

index 0102721818a3f9904da67b529ffa53775373a6f3..497243a7c1723a6041664d5e00e475a62c3de537 100644 (file)
 
 <xsl:template match="footnote">
   <fo:footnote>
-    <fo:inline>
-      <xsl:text>[</xsl:text>
+    <fo:inline baseline-shift="super" font-size="90%">
       <xsl:apply-templates select="." mode="footnote.number"/>
-      <xsl:text>]</xsl:text>
     </fo:inline>
     <fo:footnote-body font-size="{$footnote.font.size}">
       <xsl:apply-templates/>
 
 <xsl:template match="footnoteref">
   <xsl:variable name="footnote" select="key('id',@linkend)"/>
-  <fo:inline>
-    <xsl:text>[</xsl:text>
+  <fo:inline baseline-shift="super" font-size="90%">
     <xsl:apply-templates select="$footnote" mode="footnote.number"/>
-    <xsl:text>]</xsl:text>
   </fo:inline>
 </xsl:template>
 
@@ -48,9 +44,9 @@
   <!-- this only works if the first thing in a footnote is a para, -->
   <!-- which is ok, because it usually is. -->
   <fo:block>
-    <xsl:text>[</xsl:text>
-    <xsl:apply-templates select="ancestor::footnote" mode="footnote.number"/>
-    <xsl:text>] </xsl:text>
+    <fo:inline baseline-shift="super" font-size="90%">
+      <xsl:apply-templates select="ancestor::footnote" mode="footnote.number"/>
+    </fo:inline>
     <xsl:apply-templates/>
   </fo:block>
 </xsl:template>