]> granicus.if.org Git - docbook-dsssl/commitdiff
Add force-page-count="no-force" to preface when double.sided
authorBob Stayton <bobs@sagehill.net>
Fri, 6 Feb 2004 05:14:47 +0000 (05:14 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 6 Feb 2004 05:14:47 +0000 (05:14 +0000)
is off to prevent extra blank page.

xsl/fo/component.xsl

index a0871a87d4f1bbf38384be89f66426e29a3389f1..2dc2253b0ef58bc46b7c2516a8b36577d4c4b57e 100644 (file)
     </xsl:attribute>
 
     <!-- Page numbering for a preface doesn't restart; it continues from the ToC -->
-    <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: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">