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

From
Linux Solutions <>
Date
2007-02-11T05:20:28+00:00
ID
Thread
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