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] Removing extra blank pages in fo - including the TOC

Hi Igor,
This would make a good feature request.  8^)

I've done this before with a customization:

<xsl:template name="part.titlepage.before.verso" priority="1">
  <xsl:variable name="toc.params">
    <xsl:call-template name="find.path.params">
      <xsl:with-param name="table"
  <xsl:if test="contains($toc.params, 'toc')">
    <xsl:call-template name="division.toc">
      <xsl:with-param name="toc.context" select="."/>

<!-- Turn off the traditional full part toc -->
<xsl:template name="generate.part.toc">

The 'part.titlepage.before.verso' template is one of those generated by the
titlepage spec file, and you can see it in fo/titlepage.templates.xsl.
Normally it is empty, so you can override it to do something else, like put
the TOC before the verso titlepage (which means on the recto titlepage
after the title).

It calls division.toc to generate the part TOC.  You must have a "part toc"
or "part toc,title" string in your generate.toc parameter (it is there by

The last template nulls out the template that generates a page sequence for
the part TOC.  That is what generates the extra pages, because it is in its
own page sequence.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Igor Rosenberg" <Igor.Rosenberg@sophia.inria.fr>
To: "Docbook-Apps" <docbook-apps@lists.oasis-open.org>
Sent: Thursday, February 16, 2006 11:03 AM
Subject: [docbook-apps] Removing extra blank pages in fo - including the

> Dear list,
> I'm creating a pdf using the ant xslt task (and then converting fo to
> pdf). Linux based, docbook-xsl-1.69.1.
> Every part is on its own page, followed by a blank page, followed by the
> part TOC, followed by a blank page, then goes the first chapter.
>   PART I : first part
>   blank                     // to remove
>   PART TOC                  // to move to "part" page
>   blank
>   Chapter 1 : first chapter (and text)
> I feel like having the TOC on the same page as where the part starts,
> instead of having the part page just bearing its name. I just can't
> figure out when a "page break" is generated, in the customization
> layers. I guess the modification goes in the
>     <xsl:template name="part.titlepage">
> but I haven't been able to locate the reference to the TOC.
> Any hints appreciated!
> Igor
> ---------------------------------------------------------------------
> 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]