This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Thanks Andrew, I did basically the same thing, i.e. found a how the section element was processed and and hacked at the chapter template till it looked the same.
One thing tho', the preface page-number is being displayed as 6 in the ToC and "vi" on the actual page footer. Is there a way of getting the ToC to display Roman numerals for preface?
Many thanks
Mark
-----Original Message-----
From: Andrew Callan [mailto:acallan@elmco.com]
Sent: Thursday, May 09, 2002 2:04 PM
To: Mark Owens
Cc: docbook-apps@lists.oasis-open.org
Subject: Re: ToC Page numbers
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
>
>
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |