This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] How to suppress from printing titlepage and toc from a book in aset
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <pokorra at uni-siegen dot de>, <docbook-apps at lists dot oasis-open dot org>
- Date: Sun, 29 May 2005 01:56:42 -0700
- Subject: Re: [docbook-apps] How to suppress from printing titlepage and toc from a book in aset
- References: <1117183606.2606.8.camel@lgerd.hrz.uni-siegen.de>
This little template will do what you want:
<xsl:template match="book[1]">
<xsl:variable name="content"
select="*[not(self::title or self::subtitle
or self::titleabbrev
or self::bookinfo)]"/>
<xsl:apply-templates select="$content"/>
</xsl:template>
It is what is left of the match="book" template from fo/division.xsl after
the titlepage and TOC parts are removed. This template in your
customization layer will match on the book whose position = 1. The stock
book template will handle all other books.
You didn't say anything about the set TOC, though. It will still contain
entries for the first book.
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: Friday, May 27, 2005 1:46 AM
Subject: [docbook-apps] How to suppress from printing titlepage and toc from
a book in aset
>
> Hello!
>
> I have a <set> of two books. From the printed output I don't will to
> have the titlepage and the table of contents (toc) from the first book.
> What I have to add in my xsl-stylesheet to suppress the printing from
> titlepage und toc of the first book in the set.
>
> Best wishes,
> Gerd Pokorra
>
> E-Mail: pokorra@uni-siegen.de
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org