docbook-apps

Suppressing blank pages between chapters with double.sided output

  • 1.  Suppressing blank pages between chapters with double.sided output

    Posted 12-15-2006 11:28

    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:


    <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>


    <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