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] Page numbering - publish by chapter

Hi Chris,
This is certainly possible, but it doesn't just work out of the box.  It
will require some customization.

To set the starting page number for each chapter, it would be easier if you
upgraded to the 1.66.1 stylesheets, because they have a template named
'initial.page.number' that is called to set the starting page number for
each fo page-sequence.  If you create a new parameter such as
$starting.page.number and customize that template to check that parameter,
you could get it to start on a page other than the default.

But where does it get the starting page number for a chapter? Since you are
using XEP, you could generate XEP's intermediate XML format of the book.
That file has page information in it.  You could extract the starting page
for a chapter to feed to the previous template.  The doc for that
intermediate format is not included in XEP 3.7, but it is in 4.0, and it is
available on the RenderX site at:


Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Chris Johnson" <cjohnson@capcollege.bc.ca>
To: <docbook-apps@lists.oasis-open.org>
Cc: <xep-support@renderx.com>
Sent: Friday, October 22, 2004 10:18 AM
Subject: [docbook-apps] Page numbering - publish by chapter

> I have been following the docbook-apps thread "Page numbering in pdf
> output", and I'm wondering if there is a related functionality to set
> the starting page number. I'm publishing a ~600 page doument and the
> client would like the document to be available as a complete book *as
> well as* a series of individual chapters. The catch is, they would like
> to preserve the page numbering from the book to the chapter excerpts.
> Is this possible with XSL-FO and XEP? (I will cc: the XEP list)
> Using docBook xsl 1.61.3 and XEP 3.7.7, Academic Edition.
> TIA,
> Chris
> Chris Johnson
> Web Developer
> Capilano College
> North Vancouver, Canada
> 604.986.1911 ext. 3455
> cjohnson@capcollege.bc.ca

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