</xsl:call-template>
</xsl:variable>
- <xsl:if test="(contains($toc.params, 'toc')
- and $depth <= $generate.section.toc.level)
- or refentry">
+ <xsl:if test="contains($toc.params, 'toc')
+ and $depth <= $generate.section.toc.level">
<xsl:call-template name="section.toc">
<xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
</xsl:call-template>
</xsl:call-template>
</xsl:variable>
- <xsl:if test="(contains($toc.params, 'toc')
- and $generate.section.toc.level >= 1)
- or refentry">
+ <xsl:if test="contains($toc.params, 'toc')
+ and $generate.section.toc.level >= 1">
<xsl:call-template name="section.toc">
<xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
</xsl:call-template>
</xsl:call-template>
</xsl:variable>
- <xsl:if test="(contains($toc.params, 'toc')
- and $generate.section.toc.level >= 2)
- or refentry">
+ <xsl:if test="contains($toc.params, 'toc')
+ and $generate.section.toc.level >= 2">
<xsl:call-template name="section.toc">
<xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
</xsl:call-template>
</xsl:call-template>
</xsl:variable>
- <xsl:if test="(contains($toc.params, 'toc')
- and $generate.section.toc.level >= 3)
- or refentry">
+ <xsl:if test="contains($toc.params, 'toc')
+ and $generate.section.toc.level >= 3">
<xsl:call-template name="section.toc">
<xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
</xsl:call-template>
</xsl:call-template>
</xsl:variable>
- <xsl:if test="(contains($toc.params, 'toc')
- and $generate.section.toc.level >= 4)
- or refentry">
+ <xsl:if test="contains($toc.params, 'toc')
+ and $generate.section.toc.level >= 4">
<xsl:call-template name="section.toc">
<xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
</xsl:call-template>
</xsl:call-template>
</xsl:variable>
- <xsl:if test="(contains($toc.params, 'toc')
- and $generate.section.toc.level >= 5)
- or refentry">
+ <xsl:if test="contains($toc.params, 'toc')
+ and $generate.section.toc.level >= 5">
<xsl:call-template name="section.toc">
<xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
</xsl:call-template>