]> granicus.if.org Git - docbook-dsssl/commitdiff
Add setindex to context param in mode="reference" to better
authorBob Stayton <bobs@sagehill.net>
Thu, 14 Jul 2011 19:09:32 +0000 (19:09 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 14 Jul 2011 19:09:32 +0000 (19:09 +0000)
support setindex.

xsl/html/autoidx.xsl

index cd068e4d6c0cc02999cabe061ebbaad3cf080602..bacb46f611ba05967b26fb1707bb2420e57c3f7d 100644 (file)
             <xsl:when test="$index.links.to.section = 1">
               <xsl:call-template name="href.target">
                 <xsl:with-param name="object" select="&section;"/>
-                <xsl:with-param name="context" select="//index[&scope;][1]"/>
+                <xsl:with-param name="context" 
+                                select="(//index[&scope;] | //setindex[&scope;])[1]"/>
               </xsl:call-template>
             </xsl:when>
             <xsl:otherwise>
               <xsl:call-template name="href.target">
                 <xsl:with-param name="object" select="."/>
-                <xsl:with-param name="context" select="//index[&scope;][1]"/>
+                <xsl:with-param name="context" 
+                                select="(//index[&scope;] | //setindex[&scope;])[1]"/>
               </xsl:call-template>
             </xsl:otherwise>
           </xsl:choose>