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]

Re: [docbook-apps] page number prefix


On Mon, Nov 03, 2003 at 04:51:24PM +0100, Thomas Gier wrote:
> Sanders, M. wrote:
> > Using this stylesheet with fop-0.20.5 and xsl-stylsheets-1.62.0 and DTD
> > Docbook XML V4.2 I do not get the PDF output I would like to have:
> > -page numbers are not in the footer any more (as they are when using
> > plain docbook.xsl)
> > -toc looks like:
> > chapter 1     1-
> > section 1.1   1-1
> > section 1.2   1-4
> > chapter 2     2-
> > section 2.1   2-5
> > section 2.2   2-7
> > 
> 
> 
> Hi Maarten,
> 
> I was wondering if you solved the issue described above since I myself 
> am running into nearly the same. I have the correct page-numbering in my 
> footers but the chapter entries in the TOC miss the correct page number:
> 
> chapter 1 ...... 1-
> 1.1 foo .........1-1
> 1.2 bar .........1-3
> chapter 2 .......2-
> 2.1 blah ........2-2
> 2.2 blubb .......2-4

The prefix customization copied the chapter template from
the 1.60 stylesheets.  That template put the chapter
id on the fo:page-sequence element, which FOP did not
understand, so it could not find that id to assign a
page number in the TOC.  Version 1.61 of the stylesheets
moved the chapter id to the first fo:block in the chapter,
fixing the missing page number in the TOC.

See the match="chapter" template in fo/component.xsl
in the 1.62.4 stylesheets to see how the id location
was changed.  So the customization file needs to
be updated.

Regarding the missing page numbers in the footer, I think
the footer.content template in the customization needs
more cases.  It seems to be written for double.sided
output, and doesn't include cases for all the page types
you might want it for.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]