Fixed links to footnotes
authorJonathan Blake <jonathan.blake@projectaon.org>
Sat, 25 Nov 2006 18:57:16 +0000 (18:57 +0000)
committerJonathan Blake <jonathan.blake@projectaon.org>
Sat, 25 Nov 2006 18:57:16 +0000 (18:57 +0000)
git-svn-id: https://projectaon.org/data/trunk@187 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11

xml/xhtml-mongoose.xsl

index 884d6b3..9c252af 100644 (file)
@@ -9,6 +9,9 @@
 $Id$
 
 $Log$
+Revision 1.2  2006/11/25 18:57:16  jonathan.blake
+Fixed links to footnotes
+
 Revision 1.1  2006/11/25 04:48:52  jonathan.blake
 Modified to generate a single unstyled, UTF-8, HTML file which lacks any illustrations
 
@@ -539,12 +542,14 @@ Todo:
     <!-- will the list always contain the closest ancestor first? -->
     <xsl:variable name="footnote-section"><xsl:value-of select="ancestor::section[position()=1]/@id" /></xsl:variable>
     <xsl:variable name="footnote-marker"><xsl:number count="footnotes/footnote" from="/" level="any" format="1" /></xsl:variable>
+    <xsl:variable name="footnote-id"><xsl:value-of select="@id" /></xsl:variable>
     <xsl:variable name="footnote-idref"><xsl:text>#</xsl:text><xsl:value-of select="@idref" /></xsl:variable>
      
     <xsl:for-each select="*[1]">
      <p>
       <xsl:text>[</xsl:text>
       <a>
+       <xsl:attribute name="name"><xsl:value-of select="$footnote-id" /></xsl:attribute>
        <xsl:attribute name="href"><xsl:value-of select="$footnote-idref" /></xsl:attribute>
        <xsl:value-of select="$footnote-marker" />
       </a>