I've used the fo:marker logic with FOP 0.20.5, however 0.92beta does not
allow fo:tables within markers.

There are also issues with figuring out the exact last page.  I've used the
position()=last() logic, but then if you have a long field that flows onto
another page, it puts the same footer on the second to last page and the
last page.

For example, in printing business forms - you have a order header and order
detail lines.
If you use the position()=last() logic on the detail lines, it seems to work
fine, until after your detail lines, you want to put a document message from
the order header that happens to flow onto another page.

The last page should display a sub-total, tax and grand total.  This should
not be on the first page (unless the first page happens to also be the last
page).

There doesn't seem to be a good real test for last page yet.  The "only"
option should work, but when is it *actually* going to be implemented so I
can use it?

-Mike


Pascal Sancho wrote:
> 
> Mike,
> 
> There is something about that in list archives (see [1]).
> Jeremias wrote that the right solution should be page-position="only"
> (XSL-FO 1.1 spec), witch is not yet implemented in FOP.
> Playing with fo:marker should be a workaround.
> 
> Pascal
> 
> [1] http://marc.theaimsgroup.com/?l=fop-user&m=115700779613800&w=2
> 
>> -----Original Message-----
>> From: mikevn123 [mailto:[EMAIL PROTECTED] 
>> Sent: Wednesday, October 18, 2006 2:14 PM
>> To: [email protected]
>> Subject: RE: One Page DOcument
>> 
>> 
>> > I have a similar problem as to the one posted before.
>> > 
>> > I've setup two page masters, one to be used for page-position="any" 
>> > and another to be used for page-position="last".
>> > 
>> > When my document is rendered, and it is two or more pages, it works 
>> > great.
>> > When my document is rendered and it is only one page, it uses the 
>> > "any"
>> > page-master.
>> > 
>> > Since there is no "first" defined, I was hoping that the 
>> "last" would 
>> > apply to page 1.
>> > 
>> > I am using FOP 0.92beta.
>> > 
>> > Is there a way to have a single page document take on the 
>> attributes 
>> > of the "last" page?
>> > 
>> > Thanks.
>> 
>> Hi,
>> 1. Can you send a short XSL-FO that demonstrate that?
>> 2. I guess you use a fo:repeatable-page-master-alternatives.
>> you can try to change the fo:conditional-page-master-reference order.
>> 
>> 
>> You guessed right, I am using 
>> fo:repeatable-page-master-alternative and 
>> fo:conditional-page-master-reference.
>> 
>>  <fo:layout-master-set>
>>   <fo:simple-page-master master-name="default-page"
>>                          page-height="11in" 
>>                          page-width="8.50in" 
>>                          margin-top="0.25in" 
>>                          margin-left="0.25in"
>>                          margin-right="0.25in"
>>                          margin-bottom="0.25in">
>> <!-- space needed for header & footer tables -->
>>   <fo:region-body          
>>    region-name="body"
>>    margin-top="0in" 
>>                          margin-bottom="1.50in"/>
>>   <fo:region-before region-name="header" extent="10.0in"/> 
>> <!-- space needed for header table -->
>>   <fo:region-after region-name="footer" extent="1.50in"/> 
>> <!-- space needed for footer table -->
>>   <fo:region-start  extent="0.00in"/>
>>   <fo:region-end    extent="0.00in"/>
>>   </fo:simple-page-master>
>>   
>>   
>>   <fo:simple-page-master master-name="last-page"
>>    page-height="11in" 
>>    page-width="8.50in" 
>>    margin-top="0.25in" 
>>    margin-left="0.25in"
>>    margin-right="0.25in"
>>    margin-bottom="0.25in"> 
>>    <!-- space needed for header & footer tables -->
>>    <fo:region-body          
>>     region-name="body"
>>     margin-top="0in" 
>>     margin-bottom="1.50in"/>
>>    <fo:region-before region-name="header" extent="10.0in"/> 
>> <!-- space needed for header table -->
>>    <fo:region-after  region-name="last-footer" 
>> extent="1.50in"/> <!-- space needed for footer table -->
>>    <fo:region-start  extent="0.00in"/>
>>    <fo:region-end    extent="0.00in"/>
>>   </fo:simple-page-master>
>>   
>>   
>>   <fo:page-sequence-master master-name="all">
>>    <fo:repeatable-page-master-alternatives>
>> 
>>     <fo:conditional-page-master-reference 
>>      page-position="last" master-reference="last-page"/>
>>     
>>     <fo:conditional-page-master-reference 
>>      page-position="any" master-reference="default-page" />
>> 
>>    </fo:repeatable-page-master-alternatives>
>>   </fo:page-sequence-master>
>>  </fo:layout-master-set>
>> 
>> As I said, it works for 2+ pages, but not for one.
>> 
>> Tell me if you want more code.
>> 
>> Thanks.
>> 
>> -Mike
>> --
>> View this message in context: 
>> http://www.nabble.com/One-Page-DOcument-tf2191362.html#a6874870
>> Sent from the FOP - Users mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/One-Page-DOcument-tf2191362.html#a6876821
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to