W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2005

Re: Multiple clients on the same report

From: Nanning Buitenhuis <nanning@elvenkind.com>
Date: Thu, 24 Feb 2005 13:24:19 +0100
Message-ID: <421DC773.6040304@elvenkind.com>
To: Geoffroy de Menten <gdementen@yahoo.com>, www-xsl-fo@w3.org

Geoffroy de Menten wrote:
> Hi,
>  
> I have a problem that look simple but we cannot find a solution.
> I am using a XML creator (programmed in java) and an XSL-FO stylesheet.
>  
> We would like to have a report with a different first page layout 
> (margin are changed), then all the same layout. But this behaviour must 
> be repeatable because more than one client is printed at a time.
> The number of clients and the number of page for one client is variable.
>  
> So it should look like (only one PDF) : (only an example, should work 
> for any number of client/ any number of pages/client)

It should work with

1 fo:page-sequence per client
each refering to a fo:page-sequence-master
which has a fo:repeatable-page-master-alternatives
    wich has
    1) a fo:conditional-page-master-reference
       with page-position="first"
       to simple-page-master A
    2) a fo:conditional-page-master-reference
       with page-position="rest"
       to simple-page-master B
    3) a fo:conditional-page-master-reference
       with page-position="last"
       to simple-page-master B

Where A is the first page layout, and B is the rest


Regards,
   NaN.
Received on Thursday, 24 February 2005 12:24:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:13 GMT