OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] numbered sections/chapters in header


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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]