</xsl:template>
<xsl:template match="procedure" mode="object.title.template">
+ <xsl:variable name="title" select="title|blockinfo/title|info/title"/>
<xsl:choose>
- <xsl:when test="$formal.procedures != 0 and title">
+ <xsl:when test="$formal.procedures != 0 and $title">
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'title'"/>
<xsl:with-param name="name">
<xsl:apply-templates select="$pchap" mode="label.markup"/>
<xsl:apply-templates select="$pchap" mode="intralabel.punctuation"/>
</xsl:if>
- <xsl:number count="procedure[title]" format="1"
+ <xsl:number count="procedure[title|blockinfo/title|info/title]" format="1"
from="chapter|appendix" level="any"/>
</xsl:when>
<xsl:otherwise>
- <xsl:number count="procedure[title]" format="1"
+ <xsl:number count="procedure[title|blockinfo/title|info/title]" format="1"
from="book|article" level="any"/>
</xsl:otherwise>
</xsl:choose>