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 John Bourke <jo...@Cedar.com> on 2002/05/02 10:24:49 UTC

Page Sequencing to conserve memory

I'm pretty new to XSL-FO and FOP and having problems with serious memory
usage on 500-1000 page docuements using tables as a reporting tool.

Being that I populate the data into the page sequence from my XML data file,
does anybody know of a way to end the page sequence after a screen full of
data and start a new page sequence.

I restrict my data in the XML to placing a screen full between
<FormFeed></FormFeed> tags. Ideally I would like to end the page sequence
when hitting a </FormFeed> and start a new page sequence for an open
<FormFeed> all within my stylesheet.

Any ideas?

John Bourke


***********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 
prohibited.

Whilst Cedar Plc takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Cedar Plc grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused.
************************************************************************

Re: Page Sequencing to conserve memory

Posted by "J.Pietschmann" <j3...@yahoo.de>.
John Bourke wrote:
> I'm pretty new to XSL-FO and FOP and having problems with serious memory
> usage on 500-1000 page docuements using tables as a reporting tool.
> 
> Being that I populate the data into the page sequence from my XML data file,
> does anybody know of a way to end the page sequence after a screen full of
> data and start a new page sequence.
> 
> I restrict my data in the XML to placing a screen full between
> <FormFeed></FormFeed> tags. Ideally I would like to end the page sequence
> when hitting a </FormFeed> and start a new page sequence for an open
> <FormFeed> all within my stylesheet.

Try
   <xsl:template match="FormFeed">
     <fo:page-sequence master-reference="...">
        <xsl:apply-templates/>
     </fo:page-sequence>
   </xsl:template>

and use
     <xsl:apply-templates>
in the context of the parent of the FormFeed elements.

J.Pietschmann