← Prev in month ← Prev in thread

Suppressing blank pages between chapters with double.sided output

From
Tavmjong Bah <>
Date
2006-12-15T11:28:03+00:00
ID
Thread
Suppressing blank pages between chapters with double.sided output
Hi,

     I am trying to suppress blank pages between chapters following the
advice given in the message:

http://lists.ebxml.org/archives/docbook-apps/200604/msg00216.html

It suggests:

"If you just want to change the behavior for any chapters after the
first, then you just need to change the first xsl:otherwise clause:

<xsl:otherwise>auto</xsl:otherwise>

[in the file fo/pagesetup.xsl]."

I've tried this but I can't get it to work:

    <!-- double-sided output -->
    <xsl:when test="$double.sided != 0">
      <xsl:choose>
        <xsl:when test="$element = 'toc'">auto-odd</xsl:when>
        <xsl:when test="$element = 'book'">101</xsl:when>
        <!-- preface typically continues TOC roman numerals -->
        <!-- Change page.number.format if not -->
        <xsl:when test="$element = 'preface'">auto-odd</xsl:when>
        <xsl:when test="($element = 'dedication' or $element = 'article') 
                    and not(preceding::chapter
                            or preceding::preface
                            or preceding::appendix
                            or preceding::article
                            or preceding::dedication
                            or parent::part
                            or parent::reference)">1</xsl:when>
        <xsl:when test="generate-id($first.book.content) =
                        generate-id(.)">301</xsl:when>
        <xsl:otherwise>auto</xsl:otherwise>
      </xsl:choose>
    </xsl:when>

(Note that page number changes of 1 to 101 and 301 are
to confirm that I am editing the right place.) 

I've tried this with docbook-xsl-1.70.1 and docbook-xsl-shapshot
from Dec 12th using libxml 20627, libxslt 10118 and libexslt 813.

Any suggestions?

Thanks, Tav
← Prev in month ← Prev in thread