You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by pedro <pe...@libero.it> on 2011/11/29 16:09:24 UTC

Help on design my xslt

Hi all
    i have some problem on design my xslt.
    The scenario :
     
    1) i want that the last pages has special footer
    2)i have a boolean that tell if i have 1 copies of the document or 3
copies(each page has a different footer title)


In origin i have no special footer for last pages and works fine:  
http://old.nabble.com/file/p32880890/old%2Bsequence.xml old+sequence.xml 


Now i try to use <fo:repeatable-page-master-alternatives> but i have some
problem:
 1)how i can call different footer for last page?
 2) how i can implement <fo:repeatable-page-master-alternatives> to choose
if is one or 3 copies?


I try something like this but not works and i have no ideas....
http://old.nabble.com/file/p32880890/new_sequence.xml new_sequence.xml 





-- 
View this message in context: http://old.nabble.com/Help-on-design-my-xslt-tp32880890p32880890.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Help on design my xslt

Posted by "Amick, Eric" <Er...@mail.house.gov>.
If I'm reading your new-sequence.xml correctly, you aren't providing any alternative for a page that is neither first nor last. Also, I don't think generating the last page in a separate page-sequence is going to work correctly when you are not doing multiple copies of the document. (None of this is specific to FOP.)
 
Eric Amick   Systems Engineer II
Legislative Computer Systems

> -----Original Message-----
> From: pedro [mailto:pedro.riky@libero.it]
> Sent: Tuesday, November 29, 2011 10:09
> To: fop-users@xmlgraphics.apache.org
> Subject: Help on design my xslt
> 
> 
> Hi all
>     i have some problem on design my xslt.
>     The scenario :
> 
>     1) i want that the last pages has special footer
>     2)i have a boolean that tell if i have 1 copies of the document or
> 3
> copies(each page has a different footer title)
> 
> 
> In origin i have no special footer for last pages and works fine:
> http://old.nabble.com/file/p32880890/old%2Bsequence.xml
> old+sequence.xml
> 
> 
> Now i try to use <fo:repeatable-page-master-alternatives> but i have
> some
> problem:
>  1)how i can call different footer for last page?
>  2) how i can implement <fo:repeatable-page-master-alternatives> to
> choose
> if is one or 3 copies?
> 
> 
> I try something like this but not works and i have no ideas....
> http://old.nabble.com/file/p32880890/new_sequence.xml new_sequence.xml
> 
> 
> 
> 
> 
> --
> View this message in context: http://old.nabble.com/Help-on-design-my-
> xslt-tp32880890p32880890.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Help on design my xslt

Posted by Luis Bernardo <lm...@gmail.com>.
You need to explain better what you want to do... You want a different 
footer for the last page but is that the last page when you have 
multiple copies or when you don't (in which case the last page would be 
the first too...)? You also say that each page has a different footer 
title...

But looking at your code there are a few issues. You define a 
page-sequence-master but then you never use it. Your 
conditional-page-master-reference checks for the last and for the first 
page but what is supposed to happen with the pages in between?

Luis

On 11/29/11 3:09 PM, pedro wrote:
> Hi all
>      i have some problem on design my xslt.
>      The scenario :
>
>      1) i want that the last pages has special footer
>      2)i have a boolean that tell if i have 1 copies of the document or 3
> copies(each page has a different footer title)
>
>
> In origin i have no special footer for last pages and works fine:
> http://old.nabble.com/file/p32880890/old%2Bsequence.xml old+sequence.xml
>
>
> Now i try to use<fo:repeatable-page-master-alternatives>  but i have some
> problem:
>   1)how i can call different footer for last page?
>   2) how i can implement<fo:repeatable-page-master-alternatives>  to choose
> if is one or 3 copies?
>
>
> I try something like this but not works and i have no ideas....
> http://old.nabble.com/file/p32880890/new_sequence.xml new_sequence.xml
>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org