← Prev in month ← Prev in thread

Problems with header and footer

From
Mathias Schindler <>
Date
2008-11-05T10:41:23+00:00
ID
Thread
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
← Prev in month ← Prev in thread