Next in thread → Next in month →

Re: [docbook-apps] Header customization for page number

From
Bob Stayton <>
Date
2007-02-11T07:29:44+00:00
ID
230701c74dae$6ae2df90$6400a8c0@totoro
Thread
Re: [docbook-apps] Header customization for page number
Hi,

You customized the wrong template.  You want 
to customize the header.content template, not the header.table template.  
And you have to follow the structure of the template if you want your header to 
work.  See the example in that section to see how to do it.

 

Bob Stayton
Sagehill Enterprises
DocBook 
Consulting


 

 

  
----- Original Message ----- 

  
From: 
  Linux 
  Solutions 

  
To:  
  

  
Sent: Saturday, February 10, 2007 9:20 
  PM

  
Subject: Re: [docbook-apps] Header 
  customization for page number

  

  
On 2/7/07, Keith 
  Fahlgren <> wrote:
  On 
    2/6/07, Linux Solutions <> 
    wrote:
> How do I print page numbers on the top right corner in 
    PDF?
>
> I currently have the following the header 
    customization, 
>
> <xsl:template 
    name="head.sep.rule">
>     
    <xsl:attribute
> 
    name="border-bottom-width">2pt</xsl:attribute>
>     
    <xsl:attribute
> 
    name="border-bottom-style">solid</xsl:attribute> 
    
>     <xsl:attribute
> 
    name="border-bottom-color">black</xsl:attribute>
> 
    </xsl:template>

<fo:page-number> needs to be in the right 
    place in your header.content
template. See http://www.sagehill.net/docbookxsl/PrintHeaders.html#PrintHeadersText
for 
    details.
  

Thank you for the link. I'm having trouble in keeping the  
  header rule  and  page number  at the  same time. 
  

<xsl:template name="header.table">
<fo:block 
  font-weight="bold" text-align="right">
    
  <fo:page-number/>
</fo:block>
</xsl:template>

<xsl:template 
  name="head.sep.rule">
    <xsl:attribute 
  name="border-bottom-width">2pt</xsl:attribute>
    
  <xsl:attribute name="border-bottom-style">solid</xsl:attribute> 
  
    <xsl:attribute 
  name="border-bottom-color">black</xsl:attribute>
</xsl:template>

Thanks
Next in thread → Next in month →