diff options
Diffstat (limited to 'xhtml-1_1/footnote.xsl')
-rw-r--r-- | xhtml-1_1/footnote.xsl | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/xhtml-1_1/footnote.xsl b/xhtml-1_1/footnote.xsl index f10a040..80d3f6e 100644 --- a/xhtml-1_1/footnote.xsl +++ b/xhtml-1_1/footnote.xsl @@ -1,10 +1,7 @@ -<?xml version="1.0" encoding="ASCII"?> -<!--This file was created automatically by html2xhtml--> -<!--from the HTML stylesheets.--> -<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"> +<?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><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 +15,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> @@ -321,4 +324,4 @@ linkend/id: <xsl:value-of select="@linkend"/> <xsl:call-template name="process.footnote"/> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet>
\ No newline at end of file |