This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: ToC Page numbers
- From: Andrew Callan <acallan at elmco dot com>
- To: Mark Owens <Mark dot Owens at coda dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 09 May 2002 08:03:45 -0500
- Subject: DOCBOOK-APPS: Re: ToC Page numbers
- Organization: Elmco Inc
- References: <820281984AF66C4089C8A11705925A9C010B7131@srv-har-mail0.coda.com><87pu0bfyya.fsf@nwalsh.com>
Yeah, I had the same problem. Basically, fop doesn't yet (as of 0.20.3)
support the id being a part of a page-sequence. I worked around this by
finding the template for each type that wasn't getting a line number
(for example: <xsl:template match="chapter"> ), removing the id from the
page-sequence and adding a block with that id just inside the flow. So:
<fo:page-sequence id="{$id}"
hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
became
<fo:page-sequence hyphenate="{$hyphenate}"
master-reference="{$master-reference}">
and the flow region became
<fo:flow flow-name="xsl-region-body">
<fo:block id="{$id}">
...
</fo:block>
</fo:flow>
There may be better ways to do this, but this worked for me. Hope it helps.
--Andrew
Norman Walsh wrote:
> [Forwarding to docbook-apps; that's the place for tool questions. I don't
> recall seeing a page number problem with fop, but someone else might have
> more suggestions.]
>
> / Mark Owens <Mark.Owens@coda.com> was heard to say:
> | Hi
> | I've now created my first DocBook document and I wish I'd discovered DocBook
> | years ago - it's great!
> | One small issue I cannot resolve.
> | My document is organised
> | book
> | preface
> | chapter
> | section
> | section
> | chapter
> | .
> | .
> |
> | The Toc is displaying page entries for preface, chapter and section element,
> | which is fine. However, only the section entries are generating correct page
> | numbers. The preface and chapters are not generating numbers at all.
> | I've looked at the docbook installation fo and params directories but it's a
> | bit bewildering at the moment.
> | BTW I'm using docbook-xsl-1.50.0, fop.0.20.3
> |
> | Can anyone help?
> | Regards
> | Mark
>
> Be seeing you,
> norm
>
>