]> granicus.if.org Git - docbook-dsssl/commitdiff
Added force-page-count="end-on-even" to each page-sequence when
authorBob Stayton <bobs@sagehill.net>
Thu, 29 Apr 2004 17:32:57 +0000 (17:32 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 29 Apr 2004 17:32:57 +0000 (17:32 +0000)
double-sided output so last page of document ends on even page.

xsl/fo/biblio.xsl
xsl/fo/component.xsl
xsl/fo/division.xsl
xsl/fo/glossary.xsl
xsl/fo/index.xsl
xsl/fo/refentry.xsl
xsl/fo/sections.xsl
xsl/fo/toc.xsl

index 7777b64dd581ee29fe6e9597d5414ea6888b2e05..d38559631ebf788fefe5a0461c80550dc7b96770 100644 (file)
         <xsl:attribute name="format">
           <xsl:call-template name="page.number.format"/>
         </xsl:attribute>
-        <xsl:if test="$double.sided != 0">
-          <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-        </xsl:if>
+        <xsl:choose>
+          <xsl:when test="$double.sided != 0">
+            <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+            <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+          </xsl:otherwise>
+        </xsl:choose>
         <xsl:attribute name="hyphenation-character">
           <xsl:call-template name="gentext">
             <xsl:with-param name="key" select="'hyphenation-character'"/>
index 87599430a2ea51b51cd879cc82a440baae461312..596ee9f5e008505a2c89ea3e7a5611f634eb56b4 100644 (file)
       </xsl:when>
     </xsl:choose>
 
-    <xsl:if test="$double.sided = 0">
-      <xsl:attribute name="force-page-count">no-force</xsl:attribute>
-    </xsl:if>
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
     <xsl:choose>
       <xsl:when test="$double.sided != 0">
         <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
       </xsl:when>
       <xsl:otherwise>
         <xsl:attribute name="force-page-count">no-force</xsl:attribute>
     <xsl:choose>
       <xsl:when test="$double.sided != 0">
         <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
       </xsl:when>
       <xsl:otherwise>
         <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       </xsl:when>
     </xsl:choose>
 
-    <xsl:if test="$double.sided = 0">
-      <xsl:attribute name="force-page-count">no-force</xsl:attribute>
-    </xsl:if>
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
       </xsl:when>
     </xsl:choose>
 
-    <xsl:if test="$double.sided = 0">
-      <xsl:attribute name="force-page-count">no-force</xsl:attribute>
-    </xsl:if>
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
       </xsl:when>
     </xsl:choose>
 
-    <xsl:if test="$double.sided = 0">
-      <xsl:attribute name="force-page-count">no-force</xsl:attribute>
-    </xsl:if>
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
index e588754606156a2717b6db4b9998a0ab444042ac..7f5e4a4628244e1351ea4f6f2287b6e6f3c179f2 100644 (file)
@@ -91,6 +91,7 @@
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
         <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
       </xsl:when>
     </xsl:choose>
-    <xsl:if test="$double.sided = 0">
-      <xsl:attribute name="force-page-count">no-force</xsl:attribute>
-    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
       <xsl:choose>
         <xsl:when test="$double.sided != 0">
           <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
         </xsl:when>
         <xsl:otherwise>
           <xsl:attribute name="force-page-count">no-force</xsl:attribute>
index 838d377efe4582690a052b28d5563062cfe5f87c..645759eac6185a2c97a71579eff6931e989d75a4 100644 (file)
     <xsl:attribute name="format">
       <xsl:call-template name="page.number.format"/>
     </xsl:attribute>
-    <xsl:if test="$double.sided != 0">
-      <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-    </xsl:if>
+    
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
     <xsl:attribute name="format">
       <xsl:call-template name="page.number.format"/>
     </xsl:attribute>
-    <xsl:if test="$double.sided != 0">
-      <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
index 38cb4b203d362fe4f718b54a53381d640f61b7d0..e6f15444e461289b9889e1eb75c18bcfa7667817 100644 (file)
     <xsl:attribute name="format">
       <xsl:call-template name="page.number.format"/>
     </xsl:attribute>
-    <xsl:if test="$double.sided != 0">
-      <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
     <xsl:attribute name="format">
       <xsl:call-template name="page.number.format"/>
     </xsl:attribute>
-    <xsl:if test="$double.sided != 0">
-      <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
index 201b4ed86b3948421ef080f26b05afbdb1fd8f5c..01ce1be329981de29d56d5e3ab71ff96bb485e92 100644 (file)
       <xsl:attribute name="format">
         <xsl:call-template name="page.number.format"/>
       </xsl:attribute>
-      <xsl:if test="$double.sided != 0">
-        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-      </xsl:if>
+
+      <xsl:choose>
+        <xsl:when test="$double.sided != 0">
+          <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+          <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+        </xsl:otherwise>
+      </xsl:choose>
 
       <xsl:attribute name="hyphenation-character">
         <xsl:call-template name="gentext">
     <xsl:attribute name="format">
       <xsl:call-template name="page.number.format"/>
     </xsl:attribute>
-    <xsl:if test="$double.sided != 0">
-      <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
         <xsl:attribute name="format">
           <xsl:call-template name="page.number.format"/>
         </xsl:attribute>
-        <xsl:if test="$double.sided != 0">
-          <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-        </xsl:if>
+
+        <xsl:choose>
+          <xsl:when test="$double.sided != 0">
+            <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+            <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+          </xsl:otherwise>
+        </xsl:choose>
 
         <xsl:attribute name="hyphenation-character">
           <xsl:call-template name="gentext">
index 7a40402c12ceaa96c0dd4e859dc3ce7f653ace12..5d584f4c42df8a03af2be6ca2113dca0ef38f0bd 100644 (file)
     <xsl:attribute name="format">
       <xsl:call-template name="page.number.format"/>
     </xsl:attribute>
-    <xsl:if test="$double.sided != 0">
-      <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
     <xsl:attribute name="format">
       <xsl:call-template name="page.number.format"/>
     </xsl:attribute>
-    <xsl:if test="$double.sided != 0">
-      <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-    </xsl:if>
+
+    <xsl:choose>
+      <xsl:when test="$double.sided != 0">
+        <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+        <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+      </xsl:otherwise>
+    </xsl:choose>
 
     <xsl:attribute name="hyphenation-character">
       <xsl:call-template name="gentext">
index 3e4a62208d7df1e69fb78f20feaab9597f04d323..4df0e0453b48ceb59263feb112915eda719b0a23 100644 (file)
               <xsl:with-param name="element" select="'toc'"/>
             </xsl:call-template>
           </xsl:attribute>
-          <xsl:if test="$double.sided != 0">
-            <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
-          </xsl:if>
+
+          <xsl:choose>
+            <xsl:when test="$double.sided != 0">
+              <xsl:attribute name="force-page-count">end-on-even</xsl:attribute>
+              <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
+            </xsl:when>
+            <xsl:otherwise>
+              <xsl:attribute name="force-page-count">no-force</xsl:attribute>
+            </xsl:otherwise>
+          </xsl:choose>
 
           <xsl:attribute name="hyphenation-character">
             <xsl:call-template name="gentext">