Subject: RE: [xsl] FOP : Grouping by position - Out Of Memory From: "Renzo Callant" <Renzo.Callant@xxxxxxxxxx> Date: Thu, 19 Dec 2002 10:30:39 +0100 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] FOP : Grouping by positio, Jarno . Elovirta | Thread | Re: [xsl] FOP : Grouping by positio, David Carlisle |
Re: [xsl] [contains] wierd error wi, David Carlisle | Date | Re: [xsl] VML XSL examples - was SV, Stillian Triffonov |
Month |