<!ENTITY preface.autolabel SYSTEM "../params/preface.autolabel.xml">
<!ENTITY process.empty.source.toc SYSTEM "../params/process.empty.source.toc.xml">
<!ENTITY process.source.toc SYSTEM "../params/process.source.toc.xml">
+<!ENTITY punct.honorific SYSTEM "../params/punct.honorific.xml">
<!ENTITY qanda.defaultlabel SYSTEM "../params/qanda.defaultlabel.xml">
<!ENTITY qanda.inherit.numeration SYSTEM "../params/qanda.inherit.numeration.xml">
<!ENTITY qandadiv.autolabel SYSTEM "../params/qandadiv.autolabel.xml">
<!ENTITY saxon.tablecolumns SYSTEM "../params/saxon.tablecolumns.xml">
<!ENTITY section.autolabel SYSTEM "../params/section.autolabel.xml">
<!ENTITY section.label.includes.component.label SYSTEM "../params/section.label.includes.component.label.xml">
+<!ENTITY segmentedlist.as.table SYSTEM "../params/segmentedlist.as.table.xml">
<!ENTITY show.comments SYSTEM "../params/show.comments.xml">
<!ENTITY show.revisionflag SYSTEM "../params/show.revisionflag.xml">
<!ENTITY spacing.paras SYSTEM "../params/spacing.paras.xml">
<!ENTITY htmlhelp.hhc SYSTEM "../params/htmlhelp.hhc.xml">
<!ENTITY htmlhelp.hhp.tail SYSTEM "../params/htmlhelp.hhp.tail.xml">
<!ENTITY htmlhelp.enumerate.images SYSTEM "../params/htmlhelp.enumerate.images.xml">
-<!ENTITY punct.honorific SYSTEM "../params/punct.honorific.xml">
<!ENTITY htmlhelp.force.map.and.alias SYSTEM "../params/htmlhelp.force.map.and.alias.xml">
<!ENTITY htmlhelp.map.file SYSTEM "../params/htmlhelp.map.file.xml">
<!ENTITY htmlhelp.alias.file SYSTEM "../params/htmlhelp.alias.file.xml">
-<!ENTITY segmentedlist.as.table SYSTEM "../params/segmentedlist.as.table.xml">
+<!ENTITY htmlhelp.hhc.section.depth SYSTEM "../params/htmlhelp.hhc.section.depth.xml">
&htmlhelp.force.map.and.alias;
&htmlhelp.map.file;
&htmlhelp.alias.file;
+&htmlhelp.hhc.section.depth;
</reference>
<appendix><title>The Stylesheet</title>
<src:fragref linkend="saxon.tablecolumns.frag"/>
<src:fragref linkend="section.autolabel.frag"/>
<src:fragref linkend="section.label.includes.component.label.frag"/>
+<src:fragref linkend="segmentedlist.as.table.frag"/>
<src:fragref linkend="shade.verbatim.frag"/>
<src:fragref linkend="shade.verbatim.style.frag"/>
<src:fragref linkend="punct.honorific.frag"/>
<src:fragref linkend="htmlhelp.force.map.and.alias.frag"/>
<src:fragref linkend="htmlhelp.map.file.frag"/>
<src:fragref linkend="htmlhelp.alias.file.frag"/>
-<src:fragref linkend="segmentedlist.as.table.frag"/>
+<src:fragref linkend="htmlhelp.hhc.section.depth.frag"/>
</xsl:stylesheet>
</src:fragment>
<xsl:call-template name="href.target.with.base.dir"/>
<xsl:text>">
</OBJECT></xsl:text>
- <xsl:if test="section">
+ <xsl:if test="section[count(ancestor::section) < $htmlhelp.hhc.section.depth]">
<xsl:text><UL></xsl:text>
<xsl:apply-templates select="section" mode="hhc"/>
<xsl:text></UL></xsl:text>
<xsl:call-template name="href.target.with.base.dir"/>
<xsl:text>">
</OBJECT></xsl:text>
- <xsl:if test="sect2">
+ <xsl:if test="sect2[$htmlhelp.hhc.section.depth > 1]">
<xsl:text><UL></xsl:text>
<xsl:apply-templates select="sect2"
mode="hhc"/>
<xsl:call-template name="href.target.with.base.dir"/>
<xsl:text>">
</OBJECT></xsl:text>
- <xsl:if test="sect3">
+ <xsl:if test="sect3[$htmlhelp.hhc.section.depth > 2]">
<xsl:text><UL></xsl:text>
<xsl:apply-templates select="sect3"
mode="hhc"/>
<xsl:call-template name="href.target.with.base.dir"/>
<xsl:text>">
</OBJECT></xsl:text>
- <xsl:if test="sect4">
+ <xsl:if test="sect4[$htmlhelp.hhc.section.depth > 3]">
<xsl:text><UL></xsl:text>
<xsl:apply-templates select="sect4"
mode="hhc"/>
<xsl:call-template name="href.target.with.base.dir"/>
<xsl:text>">
</OBJECT></xsl:text>
- <xsl:if test="sect5">
+ <xsl:if test="sect5[$htmlhelp.hhc.section.depth > 4]">
<xsl:text><UL></xsl:text>
<xsl:apply-templates select="sect5"
mode="hhc"/>
--- /dev/null
+<refentry id="htmlhelp.hhc.section.depth">
+<refmeta>
+<refentrytitle>htmlhelp.hhc.section.depth</refentrytitle>
+<refmiscinfo role="type">integer</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>htmlhelp.hhc.section.depth</refname>
+<refpurpose>Depth of TOC for sections in a left pane.</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='htmlhelp.hhc.section.depth.frag'>
+<xsl:param name="htmlhelp.hhc.section.depth" select="5"/>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>Change this parameter if you want shallower ToC in a left pane
+of HTML Help viewer.</para>
+
+</refsect1>
+</refentry>