]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug in xref to equation without title to use context="xref-number" instead
authorBob Stayton <bobs@sagehill.net>
Wed, 2 Dec 2009 06:01:07 +0000 (06:01 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 2 Dec 2009 06:01:07 +0000 (06:01 +0000)
of "xref-number-and-title".

xsl/common/gentext.xsl

index 9ec9364ef0b02d5e084b7e49cc5abd5e22b519e5..a5ac5f29ba02bcdf1f890b5fba3816d725ea10cb 100644 (file)
 
   <xsl:variable name="context">
     <xsl:choose>
+      <xsl:when test="self::equation and not(title) and not(info/title)">
+         <xsl:value-of select="'xref-number'"/>
+      </xsl:when>
       <xsl:when test="string($autonumber) != 0 
                       and $number-and-title-template != 0
                       and $xref.with.number.and.title != 0">