This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] numbered sections/chapters in header
- From: Bob Stayton <bobs at sco dot com>
- To: Sebastian Fey <fey at parsytec dot de>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 25 Sep 2003 10:38:26 -0700
- Subject: Re: [docbook-apps] numbered sections/chapters in header
- References: <KLELIOFMGDKLJFHJHGFPKEGNCBAA.fey@parsytec.de>
In your header.content template, replace:
mode="titleabbrev.markup"
with
mode="object.title.markup"
That will include the number label for chapters
and appendixes.
For section numbers, it turns out that it should already
be including section numbers in the running header,
but there is a bug in the stylesheet that I just fixed.
The next release should work for you. If you can't
wait, then get the xsl/fo/sections.xsl file from CVS.
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
On Thu, Sep 25, 2003 at 02:41:07PM +0200, Sebastian Fey wrote:
> hi,
>
> just a simple question:
>
> how do i add the numbers to the section/chapter title in the header?
> the header should look like this:
>
> (odd pages)..............................(even pages)
> [LOGO]............Chapter X Blaablaaaa || X.y.z Blaaablubbeldi
> Blub........[LOGO]
>
> i get something like this:
>
> (odd pages)..............................(even pages)
> [LOGO]......................Blaablaaaa || Blaaablubbeldi
> Blub..............[LOGO]
>
>
>
> thx :)
>
> Sebastian
>
>
> ---
> my header.content template:
>
> <xsl:choose>
>
> <xsl:when test="$sequence = 'blank' or $sequence = 'first' or $pageclass =
> 'titlepage'">
> <!-- nothing -->
> </xsl:when>
> <xsl:when test="$sequence='odd'">
> <xsl:choose>
> <xsl:when test="$position='left'">LOGO tbd</xsl:when>
> <xsl:when test="$position='right'">
> <xsl:apply-templates select="." mode="titleabbrev.markup"/>
> </xsl:when>
> <xsl:otherwise><!-- nothing --></xsl:otherwise>
> </xsl:choose>
> </xsl:when>
> <xsl:when test="$sequence='even'">
> <xsl:choose>
> <xsl:when test="$position='left'">
> <fo:retrieve-marker retrieve-class-name="section.head.marker"
> retrieve-position="first-including-carryover"
> retrieve-boundary="page-sequence"/>
> </xsl:when>
> <xsl:when test="$position='right'">LOGO tbd</xsl:when>
> <xsl:otherwise><!-- nothing --></xsl:otherwise>
> </xsl:choose>
> </xsl:when>
> <xsl:otherwise><!-- nothing --></xsl:otherwise>
> </xsl:choose>
>
>
>
> To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.
>
>
--
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.