<!ENTITY htmlhelp.enumerate.images SYSTEM "../params/htmlhelp.enumerate.images.xml">
<!ENTITY htmlhelp.force.map.and.alias SYSTEM "../params/htmlhelp.force.map.and.alias.xml">
<!ENTITY htmlhelp.hhc SYSTEM "../params/htmlhelp.hhc.xml">
+<!ENTITY htmlhelp.hhc.folders.instead.books SYSTEM "../params/htmlhelp.hhc.folders.instead.books.xml">
<!ENTITY htmlhelp.hhc.section.depth SYSTEM "../params/htmlhelp.hhc.section.depth.xml">
<!ENTITY htmlhelp.hhp SYSTEM "../params/htmlhelp.hhp.xml">
<!ENTITY htmlhelp.hhp.tail SYSTEM "../params/htmlhelp.hhp.tail.xml">
&htmlhelp.map.file;
&htmlhelp.alias.file;
&htmlhelp.hhc.section.depth;
+&htmlhelp.hhc.folders.instead.books;
</reference>
<appendix><title>The Stylesheet</title>
<src:fragref linkend="htmlhelp.enumerate.images.frag"/>
<src:fragref linkend="htmlhelp.force.map.and.alias.frag"/>
<src:fragref linkend="htmlhelp.hhc.frag"/>
+<src:fragref linkend="htmlhelp.hhc.folders.instead.books.frag"/>
<src:fragref linkend="htmlhelp.hhc.section.depth.frag"/>
<src:fragref linkend="htmlhelp.hhp.frag"/>
<src:fragref linkend="htmlhelp.hhp.tail.frag"/>
<xsl:apply-templates select="key('id',$rootid)" mode="enumerate-files"/>
</xsl:when>
<xsl:otherwise>
- <xsl:apply-templates mode="enumerate-files"/>
+ <xsl:apply-templates select="/" mode="enumerate-files"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="key('id',$rootid)" mode="enumerate-images"/>
</xsl:when>
<xsl:otherwise>
- <xsl:apply-templates mode="enumerate-images"/>
+ <xsl:apply-templates select="/" mode="enumerate-images"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:text><HTML>
<HEAD>
</HEAD>
-<BODY>
-<OBJECT type="text/site properties">
+ <BODY>
+</xsl:text>
+ <xsl:if test="$htmlhelp.hhc.folders.instead.books != 0">
+ <xsl:text><OBJECT type="text/site properties">
<param name="ImageType" value="Folder">
</OBJECT>
-<UL>
+</xsl:text>
+ </xsl:if>
+<xsl:text><UL>
</xsl:text>
<xsl:choose>
<xsl:apply-templates select="key('id',$rootid)" mode="hhc"/>
</xsl:when>
<xsl:otherwise>
- <xsl:apply-templates select="." mode="hhc"/>
+ <xsl:apply-templates select="/" mode="hhc"/>
</xsl:otherwise>
</xsl:choose>
--- /dev/null
+<refentry id="htmlhelp.hhc.folders.instead.books">
+<refmeta>
+<refentrytitle>htmlhelp.hhc.folders.instead.books</refentrytitle>
+<refmiscinfo role="type"></refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>htmlhelp.hhc.folders.instead.books</refname>
+<refpurpose></refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='htmlhelp.hhc.folders.instead.books.frag'>
+<xsl:param name="htmlhelp.hhc.folders.instead.books" select="1"/>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>This parameter controls whether there should be folder-like
+icons (1) or book-like icons (0) in ToC.</para>
+
+</refsect1>
+</refentry>