Hi Bob,
thanks for the quick reply.
My style.xsl looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" [... namespace declaration ...]>
<xsl:import href="docbook/fo/docbook.xsl" />
<xsl:param name="double.sided">1</xsl:param>
<xsl:param name="force.blank.pages" select="0"/>
</xsl:stylesheet>
In the pagesetup.xsl (line 2194-2214)
<fo:page-sequence-master master-name="body">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank"
blank-or-not-blank="blank"/>
<xsl:if test="$force.blank.pages != 0">
<fo:conditional-page-master-reference master-reference="body-first"
page-position="first"/>
</xsl:if>
<fo:conditional-page-master-reference master-reference="body-odd"
odd-or-even="odd"/>
<fo:conditional-page-master-reference
odd-or-even="even">
<xsl:attribute name="master-reference">
<xsl:choose>
<xsl:when test="$double.sided != 0">body-even</xsl:when>
<xsl:otherwise>body-odd</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</fo:conditional-page-master-reference>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
the page-position="first" should only be active, if the force.blank.pages
parameter is not equals to zero.
For the prove of concept I didn't made any customization of the docbook
stylesheets. I use the DocBook XSL Stylesheets 1.79.1, which could be found
here: https://sourceforge.net/projects/docbook/files/docbook-xsl-ns/1.79.1/
Best regards,
Felix
> Gesendet: Freitag, 28. September 2018 um 18:47 Uhr
> Von: "Bob Stayton" <[email protected]>
> An: [email protected]
> Betreff: Re: [docbook-apps] Suppressing blank pages and double-sided printing
> - header and footer problem
>
> Hi Felix,
>
> Did you customize the page-master to comment out the use of
> page-position="first" as described in that archive posting?
>
> It is hard to diagnose the problem without seeing your XSL
> customization. If you don't want to post it you can send it directly to me.
>
> Bob Stayton
> Sagehill Enterprises
> [email protected]
>
> On 9/28/2018 4:31 AM, [email protected] wrote:
> > Hi,
> >
> > I have a simular problem as described in
> > https://lists.oasis-open.org/archives/docbook-apps/200707/msg00095.html. I
> > have a document, which should be printed double sided (<xsl:param
> > name="double.sided">1</xsl:param>). I want also suppress the blank pages,
> > which are generated, if a new chapter isn't starting on the odd side.
> > Therefore, I use the parameter (<xsl:param name="force.blank.pages"
> > select="0"/>). But the result is not as expected: In some special cases the
> > header and footer are on the odd side as configured on the even side and
> > vice versa, e.g., the page numbers aren't outside but inside. This behaviour
> > begins with the first chapter of the book, if the first chapter starts on an
> > even side.
> >
> > I'm using FOP 2.3 and DocBook 5.0. Any idea, what should be adepted?
> >
> > Thanks and best regards,
> > Felix
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]