]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug: when $index.links.to.section is set to zero, the
authorBob Stayton <bobs@sagehill.net>
Mon, 12 Sep 2011 05:42:45 +0000 (05:42 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 12 Sep 2011 05:42:45 +0000 (05:42 +0000)
primary index entry duplicates links that should be only
on secondary entries.  Now the links are not duplicated.

xsl/html/autoidx.xsl

index bacb46f611ba05967b26fb1707bb2420e57c3f7d..7da8e5da65ca65d57d7fa35d5239dbae9af1fe9d 100644 (file)
         </xsl:for-each>
       </xsl:when>
       <xsl:otherwise>
-        <xsl:for-each select="$refs[&scope;]">
+        <xsl:for-each select="$refs[not(see) 
+                              and not(secondary)][&scope;]">
           <xsl:apply-templates select="." mode="reference">
             <xsl:with-param name="position" select="position()"/>
             <xsl:with-param name="scope" select="$scope"/>
         </xsl:for-each>
       </xsl:when>
       <xsl:otherwise>
-        <xsl:for-each select="$refs[&scope;]">
+        <xsl:for-each select="$refs[not(see) 
+                                and not(tertiary)][&scope;]">
           <xsl:apply-templates select="." mode="reference">
             <xsl:with-param name="position" select="position()"/>
             <xsl:with-param name="scope" select="$scope"/>
         </xsl:for-each>
       </xsl:when>
       <xsl:otherwise>
-        <xsl:for-each select="$refs[&scope;]">
+        <xsl:for-each select="$refs[not(see)][&scope;]">
           <xsl:apply-templates select="." mode="reference">
             <xsl:with-param name="position" select="position()"/>
             <xsl:with-param name="scope" select="$scope"/>