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] Problems with header and footer


Hi,
That sounds like you need to set the parameter 'double.sided' to 1.  If that is zero (the default), then only a single page master is used.  When double.sided is zero, then $sequence template parameter is never 'even'. 
 
You'll also need to consider in your tests when $sequence is 'first', as that won't match on 'odd'.
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Wednesday, November 05, 2008 2:41 AM
Subject: [docbook-apps] Problems with header and footer

Hello!

 

I�m new to DocBook and I have a problem with the layout of the headers and footers.

I�m using DocBook 5.0 with the 1.74 Stylesheets and RenderX XEP to convert my XML-Files to PDF.

 

I try to set individual headers and footer for the �even� and the �odd� pages but it does not work. The following template works fine but it only produces pages one layout (for recto pages):

 

  <xsl:template name="footer.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="$pageclass='titlepage'">

                                                               <!-- NOTHING -->

                                               </xsl:when>

 

                                               <xsl:when test="$position = 'left'">

                                                               <xsl:text>&copy; 2008 Matrixware Information Services</xsl:text>

                                               </xsl:when>

                                               <xsl:when test="$position = 'right'">

                                                               <fo:page-number/>

                                               </xsl:when>

                               </xsl:choose>

                </fo:block>

  </xsl:template>

 

I�ve desperately tried to split this into �even� and �odd� pages. This is the template that does not work:

 

  <xsl:template name="footer.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="$pageclass='titlepage'">

                                                               <!-- NOTHING-->

                                               </xsl:when>

                                              

                                               <xsl:when test="$sequence = 'even' and $position = 'right'">

                                                               <xsl:text>&copy; 2008 Matrixware Information Services</xsl:text>

                                               </xsl:when>

                                               <xsl:when test="$sequence = 'even' and $position = 'left'">

                                                               <fo:page-number/>

                                               </xsl:when>

 

                                               <xsl:when test="$sequence = 'odd' and $position = 'left'">

                                                               <xsl:text>&copy; 2008 Matrixware Information Services</xsl:text>

                                               </xsl:when>

                                               <xsl:when test="$sequence = 'odd' and $position = 'right'">

                                                               <fo:page-number/>

                                               </xsl:when>

                               </xsl:choose>

                </fo:block>

  </xsl:template>

 

I only get output in some of the �odd� pages, and in none of the �even� pages. The same with the header. Any ideas?

 

Thank you in advance!

 

Mathias Schindler

 

--

                _____  __  _         ___ _                  _  _

               / ___ \/ _|| | |\/| /\ | |_) | \_/\    / /\ |_)|_

              / /   \__/  | | |  |/--\| | \ | / \ \/\/ /--\| \|_

              | |         | | INFORMATION SERVICES

              | |   __    | |

              | | _/  \___/ /

              |_||__/\_____/

 

 

  Mathias Schindler           MATRIXWARE Information Services GmbH

  Text Services Development   Lehargasse 11/8, 1060 Vienna, Austria, Europe

 

                              Phone +43 (1) 585 73 61

                              Fax   +43 (1) 585 01 41

 



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