]> granicus.if.org Git - docbook-dsssl/commitdiff
Applied fix from Jeff Beal that
authorBob Stayton <bobs@sagehill.net>
Mon, 7 Apr 2003 21:16:54 +0000 (21:16 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 7 Apr 2003 21:16:54 +0000 (21:16 +0000)
fixed the bug that put secondary page numbers on primary entries.
Same with tertiary page numbers on secondary entries.

xsl/fo/autoidx.xsl

index f4a720dae99f554f2deebdbfbb8ef78ef17cdb3f..371fd8b4ef29980ffcac327ee7cc1bfc0320a8b5 100644 (file)
     <xsl:value-of select="primary"/>
 
     <xsl:variable name="page-number-citations">
-      <xsl:for-each select="$refs[not(see) and not(seealso)]">
+      <xsl:for-each select="$refs[not(see) and not(seealso)
+                            and not(secondary)]">
         <xsl:apply-templates select="." mode="reference">
           <xsl:with-param name="scope" select="$scope"/>
         </xsl:apply-templates>
     <xsl:value-of select="secondary"/>
 
     <xsl:variable name="page-number-citations">
-      <xsl:for-each select="$refs[not(see) and not(seealso)]">
+      <xsl:for-each select="$refs[not(see) and not(seealso)
+                            and not(tertiary)]">
         <xsl:apply-templates select="." mode="reference">
           <xsl:with-param name="scope" select="$scope"/>
         </xsl:apply-templates>