← Prev in month ← Prev in thread
Next in thread → Next in month →

Page Numbering wooes in the double-sided format (PDF)

From
Nancy Brandt <>
Date
2008-12-30T17:40:33+00:00
ID
Thread
Page Numbering wooes in the double-sided format (PDF)
Hi folks,

Currently, I am struggling with Docbook's page numbering mechanism. My PDF document (created using XSLTPROC and FOP 0.94)  has a front coverpage that basically is a customized titlepage-first page. After the coverpage comes a legal notice, TOC and a Part. Here are the problems I have:

1) The legal notice page and its subsequent blank page have a numbering (2 and 3 respectively). Then there is another blank page and a TOC page with numbered with a Roman number (v). 

2) The first page of Part (where the part's title appears) is numbered with (1) and its subsequent blank page has no numbering at all!!! :-( the next pages are OK.

In my print.xsl I have the following code:
<!--Customizing header content for book format-->
<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>  
    <!-- sequence can be odd, even, first, blank -->
    <!-- position can be left, center, right -->
    <xsl:choose>
      
      <xsl:when test="$double.sided!=0 and $pageclass='lot' and $position='right'">
        <fo:page-number/>
      </xsl:when>

      <xsl:when 
    test="$double.sided!=0 and $pageclass='lot' and $sequence='blank' and
    $position='left'">
       
 <fo:page-number/>
      </xsl:when>
      
      <xsl:when 
    test="$double.sided!=0 and $pageclass='body' and $sequence='blank' and $position='left'">
        <fo:page-number/>
      </xsl:when>

      <xsl:when test="$double.sided!=0 and $pageclass='body' and $sequence='even' and $position='left'">  
        <fo:page-number/>
      </xsl:when>

      <xsl:when 
    test="$double.sided!=0 and $pageclass='body'and ($sequence='odd' or $sequence='first') and
    $position='right'">
    <fo:page-number/>
     
 </xsl:when>

      <xsl:when test="$double.sided!=0 and $sequence='odd' 
        and $position='right'">  
        <fo:retrieve-marker retrieve-class-name="section.head.marker"  
                            retrieve-position="first-including-carryover"
                            retrieve-boundary="page-sequence"/>
      </xsl:when>

      <xsl:when test="$double.sided!=0 and $sequence='even' and $position='left'">
       
 <fo:retrieve-marker retrieve-class-name="section.head.marker"  
                            retrieve-position="first-including-carryover"
                            retrieve-boundary="page-sequence"/>
      </xsl:when>

      <xsl:when test="$double.sided=0 and $pageclass='body' 
        and $sequence !='first' and $position='center'">
        <xsl:apply-templates select="." mode="titleabbrev.markup"/>
      </xsl:when>
    </xsl:choose>
 
 </fo:block>
</xsl:template>

Could anyone tell me PLEASE, what have caused the above problems, and how to solve them.

Thank you all in advance!!!

best wishes,
nancy
← Prev in month ← Prev in thread
Next in thread → Next in month →