[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: FOP : Grouping by position - Out Of Memory

Subject: RE: FOP : Grouping by position - Out Of Memory
From: "Renzo Callant" <Renzo.Callant@xxxxxxxxxx>
Date: Thu, 19 Dec 2002 10:30:39 +0100
fop out of memory
That was a quick response, thanks, but

I do not sort them, they are sorted in my xml-file. 
When i change the amount of memory to 256 i have no problem,
but i can not keep enlarging the memory. 
The XML-file can vary in size from 100kb up to 10MB and higher.

I've tried the following-sibling axis, but then i get errors from
FOP. I think the way i'm doing it is wrong. Most examples i've seen
only use xsl, but not together with FOP. 
Do you have experience with Apache FOP and grouping ?

-----Oorspronkelijk bericht-----
Van: Jarno.Elovirta@xxxxxxxxx [mailto:Jarno.Elovirta@xxxxxxxxx]
Verzonden: donderdag 19 december 2002 10:17
Aan: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Onderwerp: RE:  FOP : Grouping by position - Out Of Memory


Hi,

> i've been looking in the archive for an example of grouping 
> by position with 
> Apache FOP, but i can not seem to find a working example. 
> I have a large xml-file, that i have to transform to a .pdf 
> report. It's about
> 200 pages (but it can get larger !). It's done with a 
> for-each for every record.
> And i need to have 2 records/page.
> I have to limit the amount of memory used by java to 128mb. 
> The result is that i get an "out of memory"-error.

Do you sort the records? Also, if you're using FOP, are you sure the memory doesn't run out in the FO processing, instead in XSLT phase?

> In the archive i've learned that "grouping by position" would 
> be the solution
> to the problem. How can i split up the for-each so that i 
> only have 2 records
> on one page, and that the memory does not get exhausted ?

Select only

  record[position() mod 2 = 1]

and there process the current record and the following one using the following or following-sibling axis.

--

Jarno - Covenant: Call The Ships To Port (Neon)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.