<refpurpose>Generate TOCs inside Sections?</refpurpose>
<refdescription>
<para>If non-zero, a Table of Contents will be generated inside section
-elements. If <parameter>generate.section.toc.level</parameter> is non-zero,
-it may suppress some section TOCs.
+elements. Note that
+<parameter>generate.section.toc.level</parameter>
+may suppress some section TOCs.
</para>
</refdescription>
</doc:param>
<!-- ==================================================================== -->
-<xsl:param name="generate.section.toc.level" select='3' doc:type='integer'/>
+<xsl:param name="generate.section.toc.level" select='10' doc:type='integer'/>
<doc:param name="generate.section.toc.level" xmlns="">
<refpurpose>Control depth of TOC generation in sections</refpurpose>
<refdescription>
-<para>If non-zero, <parameter>generate.section.toc.level</parameter> controls
-the depth of section in which TOCs will be generated. Note that this is
-related to, but not the same as <parameter>toc.section.depth</parameter>,
-which controls the depth to which TOC entries will be generated in a given
-TOC.</para>
+<para>The <parameter>generate.section.toc.level</parameter> parameter
+controls the depth of section in which TOCs will be generated. Note
+that this is related to, but not the same as
+<parameter>toc.section.depth</parameter>, which controls the depth to
+which TOC entries will be generated in a given TOC.</para>
<para>If, for example, <parameter>generate.section.toc.level</parameter>
is <literal>3</literal>, TOCs will be generated in first, second, and third
level sections, but not in fourth level sections.
</para>
-<para>If <parameter>generate.section.toc.level</parameter> is zero, it has
-no effect.</para>
</refdescription>
</doc:param>
<a name="{$id}"/>
<xsl:call-template name="section.titlepage"/>
<xsl:if test="($generate.section.toc != '0'
- and ($generate.section.toc.level = 0
- or $depth <= $generate.section.toc.level))
+ and $depth <= $generate.section.toc.level)
or refentry">
<xsl:call-template name="section.toc"/>
</xsl:if>
<a name="{$id}"/>
<xsl:call-template name="sect1.titlepage"/>
<xsl:if test="($generate.section.toc != '0'
- and ($generate.section.toc.level = 0
- or $generate.section.toc.level >= 1))
+ and $generate.section.toc.level >= 1)
or refentry">
<xsl:call-template name="section.toc"/>
</xsl:if>
<a name="{$id}"/>
<xsl:call-template name="sect2.titlepage"/>
<xsl:if test="($generate.section.toc != '0'
- and ($generate.section.toc.level = 0
- or $generate.section.toc.level >= 2))
+ and $generate.section.toc.level >= 2)
or refentry">
<xsl:call-template name="section.toc"/>
</xsl:if>
<a name="{$id}"/>
<xsl:call-template name="sect3.titlepage"/>
<xsl:if test="($generate.section.toc != '0'
- and ($generate.section.toc.level = 0
- or $generate.section.toc.level >= 3))
+ and $generate.section.toc.level >= 3)
or refentry">
<xsl:call-template name="section.toc"/>
</xsl:if>
<a name="{$id}"/>
<xsl:call-template name="sect4.titlepage"/>
<xsl:if test="($generate.section.toc != '0'
- and ($generate.section.toc.level = 0
- or $generate.section.toc.level >= 4))
+ and $generate.section.toc.level >= 4)
or refentry">
<xsl:call-template name="section.toc"/>
</xsl:if>
<a name="{$id}"/>
<xsl:call-template name="sect5.titlepage"/>
<xsl:if test="($generate.section.toc != '0'
- and ($generate.section.toc.level = 0
- or $generate.section.toc.level >= 5))
+ and $generate.section.toc.level >= 5)
or refentry">
<xsl:call-template name="section.toc"/>
</xsl:if>