xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "G. Ken Holman" <gkhol...@CraneSoftwrights.com>
Subject Re: page-position="last"
Date Sun, 01 Apr 2001 01:18:40 GMT
Hi folks, I just wanted to clarify something in my own mind (and training 
course and book) regarding <fo:repeatable-page-master-alternatives> and 
Gary's question:

At 01/03/27 11:51 -0500, Kahn, Gary wrote:
>Here is my page-sequence-master:
>
>     <fo:page-sequence-master master-name="contents">
>      <fo:repeatable-page-master-alternatives >
>
>           <fo:conditional-page-master-reference
>               master-name="first"
>               page-position="first" />
>
>            <fo:conditional-page-master-reference
>               master-name="main"
>               page-position="rest"/>
>
>           <fo:conditional-page-master-reference
>               master-name="last"
>               page-position="last" />
>
>      </fo:repeatable-page-master-alternatives>
>     </fo:page-sequence-master>
>
>
>The first and main pages come out fine.
>However it never uses the "last" conditional page master ref.

Arved mentioned it wasn't implemented (which is a good enough reason!), but 
that wasn't the first thing that popped into my head.

Wouldn't Gary have to re-order it into the following?

           <fo:conditional-page-master-reference
               master-name="first"
               page-position="first" />

           <fo:conditional-page-master-reference
               master-name="last"
               page-position="last" />

            <fo:conditional-page-master-reference
               master-name="main"
               page-position="rest"/>

I ask this because I thought the formatter selected the master to use based 
on the first match in the order given by the stylesheet writer from section 
6.4.10 of the CR:

NOTE: Because the conditions are tested in order from the beginning of the 
sequence of children, the last alternative in the sequence usually has a 
condition that is always true and this alternative references the 
page-master that is used for all pages that do not receive some specialized 
layout.

Wouldn't Gary's specification of "rest" before "last" mean that the "last" 
test is never reached because the "rest" test would succeed for any page 
that isn't "first"?

Thanks for correcting me if I misunderstand this.

................... Ken


--
G. Ken Holman                      mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.               http://www.CraneSoftwrights.com/m/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999   (Fax:-0995)
Web site:     XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book:  Practical Transformation Using XSLT and XPath ISBN 1-894049-06-3
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training:      2001-04-06,05-01,05-14,05-15,
-                 05-16,05-17,05-21,05-22,06-18,06-21,07-20,07-21,09-19

!!Five-day XSLT/XPath/XSLFO Training Blitz June 18-22, 2001 in Ottawa!!


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Mime
View raw message