RE: One Page DOcument

2006-10-18 Thread mikevn123

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: fop-users@xmlgraphics.apache.org
>> 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.
>> 
>>  
>>   >  page-height="11in" 
>>  page-width="8.50in" 
>>  margin-top="0.25in" 
>>  margin-left="0.25in"
>>  margin-right="0.25in"
>>  margin-bottom="0.25in">
>> 
>>   >region-name="body"
>>margin-top="0in" 
>>  margin-bottom="1.50in"/>
>>
>> 
>>
>> 
>>   
>>   
>>   
>>   
>>   
>>   >page-height="11in" 
>>page-width="8.50in" 
>>margin-top="0.25in" 
>>margin-left="0.25in"
>>margin-right="0.25in"
>>margin-bottom="0.25in"> 
>>
>>> region-name="body"
>> margin-top="0in" 
>> margin-bottom="1.50in"/>
>> 
>> 
>>> extent="1.50in"/> 
>>
>>
>>   
>>   
>>   
>>   
>>
>> 
>> >  page-position="last" master-reference="last-page"/>
>> 
>> >  page-position="any" master-reference="default-page" />
>> 
>>
>>   
>>  
>> 
>> 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]



RE: One Page DOcument

2006-10-18 Thread mikevn123

> 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.

 
   

  
   
   
  
  
  
  
  
   
   
   


   
   
  
  
  
  
   





   
  
 

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]



Re: One Page DOcument

2006-10-17 Thread mikevn123

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.
-- 
View this message in context: 
http://www.nabble.com/One-Page-DOcument-tf2191362.html#a6864617
Sent from the FOP - Users mailing list archive at Nabble.com.


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