]> granicus.if.org Git - docbook-dsssl/commitdiff
Don't count equations without titles when labelling equations
authorNorman Walsh <ndw@nwalsh.com>
Wed, 17 Jul 2002 11:01:09 +0000 (11:01 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 17 Jul 2002 11:01:09 +0000 (11:01 +0000)
xsl/common/labels.xsl

index 3aec644e2a46436627ee1f7be55b35df50f79a33..87ace73e7fbc96678ad3556db57a9b97aa0f0a3c 100644 (file)
@@ -512,10 +512,10 @@ element label.</para>
             <xsl:apply-templates select="$pchap" mode="label.markup"/>
             <xsl:apply-templates select="$pchap" mode="intralabel.punctuation"/>
           </xsl:if>
-          <xsl:number format="1" from="chapter|appendix" level="any"/>
+          <xsl:number format="1" count="equation[title]" from="chapter|appendix" level="any"/>
         </xsl:when>
         <xsl:otherwise>
-          <xsl:number format="1" from="book|article" level="any"/>
+          <xsl:number format="1" count="equation[title]" from="book|article" level="any"/>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:otherwise>