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] generate-article-titlepage-on-separate-page

I'm not quite clear which you are asking for, as the subject line says "titlepage-on-separate-page" and the body says TOC on its own page. I'm also not clear if you mean FO output and separate physical pages, or HTML output and separate chunk pages. In general, the more detail you put in requests, the easier they are to answer.

In the case of FO output, you can do it with a couple of utility templates that the stylesheet provides. The first one creates a page break after the title page, and the second one creates a page break after the table of contents.

<xsl:template name="article.titlepage.separator">
 <fo:block break-after="page"/>

<xsl:template name="component.toc.separator">
 <fo:block break-after="page"/>

An even simpler method uses the attribute-set named 'toc.margin.properties' as described here:


although its section title would probably not have led you there. These two attributes accomplish the same thing:

<xsl:attribute-set name="toc.margin.properties">
 <xsl:attribute name="break-before">page</xsl:attribute>
 <xsl:attribute name="break-after">page</xsl:attribute>

Bob Stayton
Sagehill Enterprises

----- Original Message ----- From: "Lars "Bjørndal"" <lars@lamasti.net>
To: "docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, October 04, 2011 2:13 AM
Subject: [docbook-apps] generate-article-titlepage-on-separate-page

Is there an equivalent XSL parameter, so that a TOC element is on it's
own page? Or do I need to create a title page spec file and generate
a custom XSL template for this purpose?


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]