]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug in call to href.target that omitted the context param,
authorBob Stayton <bobs@sagehill.net>
Thu, 13 Jan 2005 08:52:14 +0000 (08:52 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 13 Jan 2005 08:52:14 +0000 (08:52 +0000)
which should be set to the index, not the indexterm.

xsl/html/autoidx.xsl

index b08be9ba640f091f4804b56b6272548413584252..57ef8af074aa2cdc706df1a45cf7a32139a39b6a 100644 (file)
         <xsl:attribute name="href">
           <xsl:call-template name="href.target">
             <xsl:with-param name="object" select="&section;"/>
+            <xsl:with-param name="context" select="//index[&scope;][1]"/>
           </xsl:call-template>
         </xsl:attribute>
 
         <xsl:attribute name="href">
           <xsl:call-template name="href.target">
             <xsl:with-param name="object" select="$target[1]"/>
+            <xsl:with-param name="context" select="//index[&scope;][1]"/>
           </xsl:call-template>
         </xsl:attribute>
         <xsl:apply-templates select="$target[1]" mode="index-title-content"/>
         <xsl:attribute name="href">
           <xsl:call-template name="href.target">
             <xsl:with-param name="object" select="$target[1]"/>
+            <xsl:with-param name="context" select="//index[&scope;][1]"/>
           </xsl:call-template>
         </xsl:attribute>
         <xsl:apply-templates select="$target[1]" mode="index-title-content"/>