]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bugs in page numbering when double.sided=1
authorNorman Walsh <ndw@nwalsh.com>
Fri, 17 Jan 2003 13:08:17 +0000 (13:08 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 17 Jan 2003 13:08:17 +0000 (13:08 +0000)
xsl/fo/pagesetup.xsl

index 5b8db127834a956985247f3c5b21306ab09ef456..5f53d714e7d0f037f474a87e9841913dc2ace950 100644 (file)
 -->
 
   <fo:block>
-
+    <!-- pageclass can be front, body, back -->
     <!-- sequence can be odd, even, first, blank -->
     <!-- position can be left, center, right -->
     <xsl:choose>
+      <xsl:when test="$pageclass = 'titlepage'">
+        <!-- nop; no footer on title pages -->
+      </xsl:when>
+
+      <xsl:when test="$double.sided != 0 and $sequence = 'even'
+                      and $position='left'">
+        <fo:page-number/>
+      </xsl:when>
+
+      <xsl:when test="$double.sided != 0 and ($sequence = 'odd' or $sequence = 'first')
+                      and $position='right'">
+        <fo:page-number/>
+      </xsl:when>
+
+      <xsl:when test="$double.sided = 0 and $position='center'">
+        <fo:page-number/>
+      </xsl:when>
+
       <xsl:when test="$sequence='blank'">
         <xsl:choose>
           <xsl:when test="$double.sided != 0 and $position = 'left'">
         </xsl:choose>
       </xsl:when>
 
-      <xsl:when test="$pageclass='titlepage'">
-        <!-- nop: other titlepage sequences have no footer -->
-      </xsl:when>
-
-      <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='left'">
-        <fo:page-number/>
-      </xsl:when>
-
-      <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='right'">
-        <fo:page-number/>
-      </xsl:when>
-
-      <xsl:when test="$double.sided = 0 and $position='center'">
-        <fo:page-number/>
-      </xsl:when>
 
       <xsl:otherwise>
         <!-- nop -->