This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
AW: [docbook] Question to cutomization of docbook-xsl
- From: "YinYang" <Yin dot Yang at gmx dot net>
- To: "Bob Stayton" <bobs at sagehill dot net>,<docbook at lists dot oasis-open dot org>
- Date: Fri, 6 Feb 2004 21:24:44 +0100
- Subject: 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:bobs@sagehill.net]
> Gesendet: Freitag, 06. Februar 2004 06:19
> An: Bob Stayton; YinYang; docbook@lists.oasis-open.org
> 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
> bobs@sagehill.net
>
>
> ----- Original Message -----
> From: "Bob Stayton" <bobs@sagehill.net>
> To: "YinYang" <Yin.Yang@gmx.net>; <docbook@lists.oasis-open.org>
> 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
> > bobs@sagehill.net
> >
> >
> > ----- Original Message -----
> > From: "YinYang" <Yin.Yang@gmx.net>
> > To: <docbook@lists.oasis-open.org>
> > 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
> > >
To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.