This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Header customization


The doc for $header.column.widths points out that the first number in the
parameter sets the proportional width for the inside position for
double-sided output.  The inside position alternates left and right for odd
and even pages, respectively, when double.sided is not zero.  Also, when the
first and last widths in the parameter are not the same, then the middle
position is not centered.  Those two factors cause your middle position to
alternate positions on odd and even pages.

The stylesheets assume headers and footers are mirrored in double.sided
output.  If you want to change that behavior, you could customize the
template named 'header.table' in fo/pagesetup.xsl to make whatever kind of
layout you want.  You could also customize the smaller template named
'header.footer.width' in fo/pagesetup.xsl.  That template selects one of the
width values from the parameter and uses it to set the column width in the
stock header table.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Pool 475-1 FRD TE-N" <Pool475-1.FRDTE-N@zf.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, August 26, 2004 1:05 AM
Subject: [docbook-apps] Header customization


> Hi,
>
> I'm trying to customize the header for FO output. If the double.sided
param
> is set to 1, the center position changes after each page. If double.sided
is
> set to 0, I want the header to be the same on each page - but this doesn't
> work, sometimes the left part of the header is the bigger one ...
sometimes
> it is the right one. What am I doing wrong?
>
> Regards,
> Bjoern
>
> --- snip ---
>   <xsl:param name="header.column.widths" select="'7 1 2'" />
>
>   <xsl:template name="header.content">
>     <xsl:param name="pageclass" select="''"/>
>     <xsl:param name="sequence" select="''"/>
>     <xsl:param name="position" select="''"/>
>     <xsl:param name="gentext-key" select="''"/>
>
>     <fo:block>
>       <xsl:choose>
>         <xsl:when test="$position='left'">left</xsl:when>
>
>         <xsl:when test="$position='center'">center</xsl:when>
>
>         <xsl:when test="$position='right'">right</xsl:when>
>       </xsl:choose>
>     </fo:block>
>   </xsl:template>
> --- snap ---
>
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]