This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Page numbering - publish by chapter
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Chris Johnson" <cjohnson at capcollege dot bc dot ca>, <docbook-apps at lists dot oasis-open dot org>
- Cc: <xep-support at renderx dot com>
- Date: Wed, 3 Nov 2004 17:06:36 -0800
- Subject: Re: [docbook-apps] Page numbering - publish by chapter
- References: <s178ec98.034@hermes.capcollege.bc.ca>
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:
http://www.renderx.net/Content/support/xep/reference.html
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- 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
>
>