</OBJECT></xsl:text>
</xsl:if>
<xsl:if test="book">
+ <xsl:variable name="toc.params">
+ <xsl:call-template name="find.path.params">
+ <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
+ </xsl:call-template>
+ </xsl:variable>
<xsl:text><UL></xsl:text>
- <xsl:if test="$generate.set.toc != 0 and $htmlhelp.hhc.show.root = 0">
+ <xsl:if test="contains($toc.params, 'toc') and $htmlhelp.hhc.show.root = 0">
<xsl:text><LI> <OBJECT type="text/sitemap">
<param name="Name" value="</xsl:text>
<xsl:call-template name="gentext">
</OBJECT></xsl:text>
</xsl:if>
<xsl:if test="part|reference|preface|chapter|appendix|bibliography|article|colophon|glossary">
+ <xsl:variable name="toc.params">
+ <xsl:call-template name="find.path.params">
+ <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
+ </xsl:call-template>
+ </xsl:variable>
<xsl:text><UL></xsl:text>
- <xsl:if test="$generate.book.toc != 0 and $htmlhelp.hhc.show.root = 0 and not(parent::*)">
+ <xsl:if test="contains($toc.params, 'toc') and $htmlhelp.hhc.show.root = 0 and not(parent::*)">
<xsl:text><LI> <OBJECT type="text/sitemap">
<param name="Name" value="</xsl:text>
<xsl:call-template name="gentext">