]> granicus.if.org Git - docbook-dsssl/commitdiff
Added parameter htmlhelp.hhc.section.depth for controlling depth of sections in a...
authorJirka Kosek <jirka@kosek.cz>
Wed, 28 Nov 2001 22:11:55 +0000 (22:11 +0000)
committerJirka Kosek <jirka@kosek.cz>
Wed, 28 Nov 2001 22:11:55 +0000 (22:11 +0000)
xsl/html/param.ent
xsl/html/param.xweb
xsl/htmlhelp/htmlhelp.xsl
xsl/params/htmlhelp.hhc.section.depth.xml [new file with mode: 0644]

index 14fb9afbfdde025f25fe5e7e37d8a750489a15e8..03eb4536915f3ff596c0248ff69d8b8508bd5fdb 100644 (file)
@@ -73,6 +73,7 @@
 <!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">
@@ -89,6 +90,7 @@
 <!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">
index 367b2628d11a285a8800fa76e970a88333a58836..a2443eb56eb56333d089d91b430f4a4199abc064 100644 (file)
@@ -247,6 +247,7 @@ to be incomplete. Don't forget to read the source, too :-)</para>
 &htmlhelp.force.map.and.alias;
 &htmlhelp.map.file;
 &htmlhelp.alias.file;
+&htmlhelp.hhc.section.depth;
 </reference>
 
 <appendix><title>The Stylesheet</title>
@@ -374,6 +375,7 @@ around all these parameters.</para>
 <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"/>
@@ -404,7 +406,7 @@ around all these parameters.</para>
 <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>
 
index f1059876b9209b0cd6fdf2f51b6a7e2a869d5a59..da17af6d336af688aa04eccb14001239792f41db 100644 (file)
@@ -429,7 +429,7 @@ Title=</xsl:text>
        <xsl:call-template name="href.target.with.base.dir"/>
     <xsl:text>"&gt;
   &lt;/OBJECT&gt;</xsl:text>
-  <xsl:if test="section">
+  <xsl:if test="section[count(ancestor::section) &lt; $htmlhelp.hhc.section.depth]">
     <xsl:text>&lt;UL&gt;</xsl:text>
       <xsl:apply-templates select="section" mode="hhc"/>
     <xsl:text>&lt;/UL&gt;</xsl:text>
@@ -457,7 +457,7 @@ Title=</xsl:text>
        <xsl:call-template name="href.target.with.base.dir"/>
     <xsl:text>"&gt;
   &lt;/OBJECT&gt;</xsl:text>
-  <xsl:if test="sect2">
+  <xsl:if test="sect2[$htmlhelp.hhc.section.depth > 1]">
     <xsl:text>&lt;UL&gt;</xsl:text>
       <xsl:apply-templates select="sect2"
                           mode="hhc"/>
@@ -486,7 +486,7 @@ Title=</xsl:text>
        <xsl:call-template name="href.target.with.base.dir"/>
     <xsl:text>"&gt;
   &lt;/OBJECT&gt;</xsl:text>
-  <xsl:if test="sect3">
+  <xsl:if test="sect3[$htmlhelp.hhc.section.depth > 2]">
     <xsl:text>&lt;UL&gt;</xsl:text>
       <xsl:apply-templates select="sect3"
                           mode="hhc"/>
@@ -515,7 +515,7 @@ Title=</xsl:text>
        <xsl:call-template name="href.target.with.base.dir"/>
     <xsl:text>"&gt;
   &lt;/OBJECT&gt;</xsl:text>
-  <xsl:if test="sect4">
+  <xsl:if test="sect4[$htmlhelp.hhc.section.depth > 3]">
     <xsl:text>&lt;UL&gt;</xsl:text>
       <xsl:apply-templates select="sect4"
                           mode="hhc"/>
@@ -544,7 +544,7 @@ Title=</xsl:text>
        <xsl:call-template name="href.target.with.base.dir"/>
     <xsl:text>"&gt;
   &lt;/OBJECT&gt;</xsl:text>
-  <xsl:if test="sect5">
+  <xsl:if test="sect5[$htmlhelp.hhc.section.depth > 4]">
     <xsl:text>&lt;UL&gt;</xsl:text>
       <xsl:apply-templates select="sect5"
                           mode="hhc"/>
diff --git a/xsl/params/htmlhelp.hhc.section.depth.xml b/xsl/params/htmlhelp.hhc.section.depth.xml
new file mode 100644 (file)
index 0000000..b00f4d8
--- /dev/null
@@ -0,0 +1,23 @@
+<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>