This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Page number in ToC
- From: Jens Stavnstrup <js at ddre dot dk>
- To: Nicolas Nieswandt <Nicolas dot N at gmx dot de>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 09 Aug 2002 11:31:17 +0200 (CEST)
- Subject: RE: DOCBOOK-APPS: Page number in ToC
Nicolas,
Thanks, I will do that rigt away !
Regards
Jens
On Fri, 9 Aug 2002, Nicolas Nieswandt wrote:
> Sorry, I had that problem, too. But I forgot to post the solution.
>
> That's because the referenced ID of chapter|prefarce|appendix|article is
> put into the <fo:page-sequence> element, and it seems that FOP only
> accepts IDs in <fo:block> for page number generation.
>
> You could change this by wrapping a <fo:block> around a
> <xsl:call-template> in fo/component.xsl, that's why it works with
> sections.
>
> Search for "chapter.titelpage" and change it according to the following
> example.
>
> <xsl:template match="preface">
> <..snip..>
> <fo:block id="{$id}">
> <xsl:call-template name="preface.titlepage"/>
> </fo:block>
> <..snip..>
> </xsl:template>
>
> <xsl:template match="chapter">
> <..snip..>
> <fo:block id="{$id}">
> <xsl:call-template name="chapter.titlepage"/>
> </fo:block>
> <..snip..>
> </xsl:template>
>
> <xsl:template match="appendix">
> <..snip..>
> <fo:block id="{$id}">
> <xsl:call-template name="appendix.titlepage"/>
> </fo:block>
> <..snip..>
> </xsl:template>
>
> <xsl:template match="article">
> <..snip..>
> <fo:block id="{$id}">
> <xsl:call-template name="article.titlepage"/>
> </fo:block>
> <..snip..>
> </xsl:template>
>
> > -----Original Message-----
> > From: Jens Stavnstrup [mailto:js@ddre.dk]
> > Sent: Friday, August 09, 2002 8:21 AM
> > To: Bob Stayton
> > Cc: Nicolas Nieswandt; docbook-apps@lists.oasis-open.org
> > Subject: Re: DOCBOOK-APPS: Page number in ToC
> >
> >
> > Great, this look much nicer. But, I am stille wondering, if
> > we shouldn't
> > let the use of this be optional, and still keeo Norm's old
> > style at least
> > for now. I still don't get at page number for each component
> > (chapter,
> > appendix etc.)
> >
> > Regards
> >
> > Jens
> >
> >
>
Regards,
Jens
------------------------------------------------------------------------
Jens Stavnstrup Phone :
Danish Defence Research Establishment Voice : + 45 - 39 15 17 97
Ryvangs Alle 1 - P.O. Box 2715 Fax : + 45 - 39 29 15 33
DK - 2100 Copenhagen O. E-Mail (Internet) :
Denmark js@ddre.dk
------------------------------------------------------------------------