OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] How to suppress title-book entry in a set toc


OK, now I get it.

You will have to copy this template:

<xsl:template match="book|setindex" mode="toc">

from fo/autotoc.xsl to your customization layer.   Then change is as
follows:

Replace the match with match="book[1]".

Remove or comment out this line:

  <xsl:call-template name="toc.line"/>

So this template will be called to process the first book in the set toc.
Removing the call to 'toc.line' removes its TOC entry.  But leaving the rest
of it in place means the children of the book element will still be
processed.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Gerd Pokorra" <pokorra@uni-siegen.de>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, June 02, 2005 3:33 AM
Subject: [docbook-apps] How to suppress title-book entry in a set toc


>
>   Hello!
>
>  The template
>
>    <xsl:template match="book[1]" mode="toc">
>    </xsl:template>
>
>  suppress all entries form the first book in the set TOC.
>  I want only to have suppressed the entry for the title
>  form the first book.
>
>  My problem is that I don't give the first book a title.
>  Nevertheless there is a title entry from the first book
>  in the set TOC that produce a line with only points (.....).
>  How can I suppress that line in the set TOC (title-book[1]-entry).
>  All other entries from the first book should still be in the
>  default way in the set TOC.
>
>    Gerd Pokorra
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]