[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]