Re: [docbook-apps] simplesect out of TOC

From
Bob Stayton <>
Date
2004-11-12T16:56:42+00:00
ID
011d01c4c8d8$93c4dce0$6501a8c0@toshiro
Thread
Re: [docbook-apps] simplesect out of TOC
Hi,
You want to customize this template from html/autotoc.xsl:

<xsl:template match="preface|chapter|appendix|article" mode="toc">
  <xsl:param name="toc-context" select="."/>

  <xsl:call-template name="subtoc">
    <xsl:with-param name="toc-context" select="$toc-context"/>
    <xsl:with-param name="nodes" select="section|sect1|simplesect|refentry
                                         |glossary|bibliography|index
                                         |bridgehead[$bridgehead.in.toc !=
0]"/>
  </xsl:call-template>
</xsl:template>

You want to remove the simplesect from the select attribute in the 'nodes'
parameter. Those are all the elements that are processed below appendix.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Cai Qian" <>
To: "Docbook-apps" <>
Sent: Friday, November 12, 2004 8:23 AM
Subject: [docbook-apps] simplesect out of TOC


> Hi,
> I have a documents,
> <book>
>   <appendix>
>     <title>GFDL</title>
>     <simplesect>
>       <title>PREAMBLE</title>
>       <para>...</para>
>
> When I transform that into HTML, it seems that everything in simplesect
> is into TOC. I used following
>
>   <xsl:template match="simplesect" mode="toc">
>     <xsl:param name="toc-context" select="."/>
>
>     <xsl:call-template name="subtoc">
>       <xsl:with-param name="toc-context" select="$toc-context"/>
>     </xsl:call-template>
>   </xsl:template>
>
> to avoid it, but it has no effect on title in simplesect. So Is there a
> better way to solve this problem?
>
> Thanks,
> -- 
> Cai Qian
>
>
>