]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix for procedure not getting an anchor if it has a title.
authorBob Stayton <bobs@sagehill.net>
Mon, 26 Apr 2004 16:17:59 +0000 (16:17 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 26 Apr 2004 16:17:59 +0000 (16:17 +0000)
xsl/html/lists.xsl

index 1d5aea0cbb8d1a6060028899fd4c0d53c1feb63a..770add69aa856f4ece3ec5e1b608ee420c7fd1ff 100644 (file)
                 |processing-instruction()[not(preceding-sibling::step)]"/>
 
   <div class="{name(.)}">
-    <xsl:call-template name="anchor"/>
+    <xsl:call-template name="anchor">
+      <xsl:with-param name="conditional">
+        <xsl:choose>
+         <xsl:when test="title">0</xsl:when>
+         <xsl:otherwise>1</xsl:otherwise>
+       </xsl:choose>
+      </xsl:with-param>
+    </xsl:call-template>
 
     <xsl:if test="title and $placement = 'before'">
       <xsl:call-template name="formal.object.heading"/>