]> granicus.if.org Git - docbook-dsssl/commitdiff
When fop.extensions is on, replace baseline-shift with vertical-align
authorBob Stayton <bobs@sagehill.net>
Wed, 9 Jul 2003 21:58:38 +0000 (21:58 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 9 Jul 2003 21:58:38 +0000 (21:58 +0000)
attribute for footnote numbers.

xsl/fo/footnote.xsl

index dc91a52f15cf4f165e5c36c90cd01814098f010f..79acef46d03b5ec98fba720a874d439cba5315fd 100644 (file)
 
 <xsl:template name="format.footnote.mark">
   <xsl:param name="mark" select="'?'"/>
-  <fo:inline baseline-shift="super" font-size="90%">
+  <fo:inline font-size="90%">
+    <xsl:choose>
+      <xsl:when test="$fop.extensions != 0">
+        <xsl:attribute name="vertical-align">super</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="baseline-shift">super</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
     <xsl:copy-of select="$mark"/>
   </fo:inline>
 </xsl:template>