summaryrefslogtreecommitdiff
path: root/xhtml/footnote.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xhtml/footnote.xsl')
-rw-r--r--xhtml/footnote.xsl20
1 files changed, 13 insertions, 7 deletions
diff --git a/xhtml/footnote.xsl b/xhtml/footnote.xsl
index fb9696d..d1645b9 100644
--- a/xhtml/footnote.xsl
+++ b/xhtml/footnote.xsl
@@ -4,7 +4,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="exsl" version="1.0">
<!-- ********************************************************************
- $Id: footnote.xsl 9361 2012-05-12 23:39:44Z bobstayton $
+ $Id: footnote.xsl 9665 2012-11-08 14:26:20Z kosek $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
@@ -18,23 +18,29 @@ The footnote text is handled in name="process.footnote".
The footnote marker gets an id of @id, while the
footnote text gets an id of #ftn.@id. They cross link to each other. -->
<xsl:template match="footnote">
- <xsl:variable name="href">
- <xsl:text>#ftn.</xsl:text>
+ <xsl:variable name="name">
<xsl:call-template name="object.id">
<xsl:with-param name="conditional" select="0"/>
</xsl:call-template>
</xsl:variable>
+ <xsl:variable name="href">
+ <xsl:text>#ftn.</xsl:text>
+ <xsl:value-of select="$name"/>
+ </xsl:variable>
<a href="{$href}">
<xsl:apply-templates select="." mode="class.attribute"/>
+ <xsl:if test="$generate.id.attributes = 0">
+ <xsl:attribute name="id">
+ <xsl:value-of select="$name"/>
+ </xsl:attribute>
+ </xsl:if>
+
<sup>
<xsl:apply-templates select="." mode="class.attribute"/>
<xsl:call-template name="id.attribute">
<xsl:with-param name="conditional" select="0"/>
</xsl:call-template>
- <xsl:call-template name="anchor">
- <xsl:with-param name="conditional" select="0"/>
- </xsl:call-template>
<xsl:text>[</xsl:text>
<xsl:apply-templates select="." mode="footnote.number"/>
<xsl:text>]</xsl:text>
@@ -254,7 +260,7 @@ linkend/id: <xsl:value-of select="@linkend"/>
</xsl:when>
<xsl:when test="$css.decoration != 0">
<xsl:attribute name="style">
- <xsl:value-of select="concat('width:100; align:', $direction.align.start, ';')"/>
+ <xsl:value-of select="concat('width:100; text-align:', $direction.align.start, ';', 'margin-', $direction.align.start, ': 0')"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>