← Prev in month ← Prev in thread
Next in thread → Next in month →

AW: [docbook] Question to cutomization of docbook-xsl

From
"XinXang"
Date
2004-02-06T20:13:59+00:00
ID
Thread
AW: [docbook] Question to cutomization of docbook-xsl
Hi,

i just wanted to say MANY THANKS for your help, i think you saved me a LOT
of time!

regards,
Thomas

> -----Ursprüngliche Nachricht-----
> Von: Bob Stayton [mailto:]
> Gesendet: Freitag, 06. Februar 2004 06:19
> An: Bob Stayton; YinYang; 
> Betreff: Re: [docbook] Question to cutomization of docbook-xsl
>
>
> I got a reply back from the XEP mailing list about this problem.
> It turns out that the default value for the force-page-count property
> is "auto".  According to the XSL-FO spec 7.25.6:
>
> "Force it to be an even-page if the initial-page-number
> of the next page sequence is odd."
>
> So the preface page sequence  was forcing the extra page because
> the following chapter page sequence had initial-page-number="1".
>
> The solution is to add force-page-count="no-force" to the
> preface page sequence when double-sided output is turned off.
> I just checked in this change to fo/component.xsl.  I'll see if
> other templates need such a change as well.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> 
>
>
> ----- Original Message -----
> From: "Bob Stayton" <>
> To: "YinYang" <>; <>
> Sent: Thursday, February 05, 2004 3:54 PM
> Subject: Re: [docbook] Question to cutomization of docbook-xsl
>
>
> > This was indeed a curous problem.
> > What I found during my investigation was that
> > if the preface ends on an even-numbered page, you don't get
> > an extra blank page. If it ends on an odd page, you
> > do get the extra blank page.  This was strange because
> > double-sided printing was off, so it should not need to
> > output any extra blank pages.
> >
> > I didn't see anything in the page sequence for preface that
> > would cause that behavior.  So I looked at the next page
> > sequence (for the first chapter), and it includes this property:
> >
> > initial-page-number="1"
> >
> > When I edited the fo to change that to "2" or "4", there was no
> > extra blank page.  When I changed it to "3" or "5", it came back.
> >
> > I found this to be very strange, especially since FOP, XEP, and
> > Antenna House all exhibit the same behavior.  It seems that
> > the FO processors cannot output two odd-numbered pages in
> > a row, even when you explicitly ask for it.
> >
> > I'm going to raise this on some other lists to see of this behavior
> > is by design.
> >
> >
> > Bob Stayton
> > Sagehill Enterprises
> > 
> >
> >
> > ----- Original Message -----
> > From: "YinYang" <>
> > To: <>
> > Sent: Thursday, February 05, 2004 1:16 PM
> > Subject: [docbook] Question to cutomization of docbook-xsl
> >
> >
> > > Hi there,
> > >
> > > can anyone explain me how to prevent the empty page after the
> preface in
> > the
> > > docbook-xsl styles for FO?
> > >
> > > I have no problem to do this with recto/verso - pages in a
> <book>, but I
> > > didn't find a solution for <preface> (and the funny thing is:
> if I skip
> > the
> > > chapters after the preface so that just the auto-glossary follows, the
> > empty
> > > page is gone)
> > >
> > > Many thanks in advance,
> > > Thomas
> > >
← Prev in month ← Prev in thread
Next in thread → Next in month →