Grouping by position - Out Of Memory

2002-12-18 Thread Renzo Callant
Hi all,

i've been looking in the archive for an example of grouping by position,
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.
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 ?

Renzo Callant
Belgium


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Grouping by position - Out Of Memory

2002-12-19 Thread Renzo Callant
Thanks Oleg,

but i've read the faq. The solution would be to use multiple page sequences.
How can i automate this, so that 2 records are put in 1 page sequence ?
I can put in a for-each so that for every record a new page sequence is taken, 
but how can i group this so that only a new page sequence is taken for every 2 
records ?


-Oorspronkelijk bericht-
Van: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 19 december 2002 16:15
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Grouping by position - Out Of Memory


Renzo Callant wrote:

 I have to limit the amount of memory used by java to 128mb. 
 The result is that i get an out of memory-error.
It's a faq, see http://xml.apache.org/fop/faq.html#faq-N1011A

-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Grouping by position - Out Of Memory

2002-12-20 Thread Renzo Callant
Out of Memory - problem solved. I found the solution on 
http://www.mulberrytech.com/xsl/xsl-list from G. Ken Holman [EMAIL PROTECTED]

Here is what helped me out :

T:\ftemptype prateek.xml
?xml version=1.0 encoding=iso-8859-1?
table
   rowRow 1/row
   rowRow 2/row
   rowRow 3/row
   rowRow 4/row
   rowRow 5/row
   rowRow 6/row
   rowRow 7/row
   rowRow 8/row
   rowRow 9/row
   rowRow 10/row
   rowRow 11/row
   rowRow 12/row
   rowRow 13/row
   rowRow 14/row
   rowRow 15/row
   rowRow 16/row
   rowRow 17/row
   rowRow 18/row
   rowRow 19/row
   rowRow 20/row
   rowRow 21/row
   rowRow 22/row
   rowRow 23/row
   rowRow 24/row
   rowRow 25/row
   rowRow 26/row
   rowRow 27/row
/table
T:\ftemptype prateek.xsl
?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0

xsl:output indent=yes/

xsl:template match=table
   result
 xsl:for-each select=row[ position() mod 5 = 1 ]
   page-sequence
 table
   xsl:copy-of select=./
   xsl:for-each select=following-sibling::row[ position() lt; 5 ]
 xsl:copy-of select=./
   /xsl:for-each
 /table
   /page-sequence
 /xsl:for-each
   /result
/xsl:template

/xsl:stylesheet

T:\ftempxt prateek.xml prateek.xsl
?xml version=1.0 encoding=utf-8?
result
page-sequence
table
rowRow 1/row
rowRow 2/row
rowRow 3/row
rowRow 4/row
rowRow 5/row
/table
/page-sequence
page-sequence
table
rowRow 6/row
rowRow 7/row
rowRow 8/row
rowRow 9/row
rowRow 10/row
/table
/page-sequence
page-sequence
table
rowRow 11/row
rowRow 12/row
rowRow 13/row
rowRow 14/row
rowRow 15/row
/table
/page-sequence
page-sequence
table
rowRow 16/row
rowRow 17/row
rowRow 18/row
rowRow 19/row
rowRow 20/row
/table
/page-sequence
page-sequence
table
rowRow 21/row
rowRow 22/row
rowRow 23/row
rowRow 24/row
rowRow 25/row
/table
/page-sequence
page-sequence
table
rowRow 26/row
rowRow 27/row
/table
/page-sequence
/result

Thanks Ken.

-Oorspronkelijk bericht-
Van: Renzo Callant 
Verzonden: donderdag 19 december 2002 16:22
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Grouping by position - Out Of Memory


Thanks Oleg,

but i've read the faq. The solution would be to use multiple page sequences.
How can i automate this, so that 2 records are put in 1 page sequence ?
I can put in a for-each so that for every record a new page sequence is taken, 
but how can i group this so that only a new page sequence is taken for every 2 
records ?


-Oorspronkelijk bericht-
Van: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 19 december 2002 16:15
Aan: [EMAIL PROTECTED]
Onderwerp: Re: Grouping by position - Out Of Memory


Renzo Callant wrote:

 I have to limit the amount of memory used by java to 128mb. 
 The result is that i get an out of memory-error.
It's a faq, see http://xml.apache.org/fop/faq.html#faq-N1011A

-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Length name output-file

2002-12-20 Thread Renzo Callant
Hi all,

i use fop with the .bat file. 
Can we use filenames for the .pdf output that are longer than 60 characters ?

Renzo Callant
Belgium

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FOP : OutOfMemoryError with a big XML file

2002-12-20 Thread Renzo Callant
Divide your file up in multiple page-sequences with grouping by position.
I had the same problem, look at this example :

T:\ftemptype prateek.xml
?xml version=1.0 encoding=iso-8859-1?
table
   rowRow 1/row
   rowRow 2/row
   rowRow 3/row
   rowRow 4/row
   rowRow 5/row
   rowRow 6/row
   rowRow 7/row
   rowRow 8/row
   rowRow 9/row
   rowRow 10/row
   rowRow 11/row
   rowRow 12/row
   rowRow 13/row
   rowRow 14/row
   rowRow 15/row
   rowRow 16/row
   rowRow 17/row
   rowRow 18/row
   rowRow 19/row
   rowRow 20/row
   rowRow 21/row
   rowRow 22/row
   rowRow 23/row
   rowRow 24/row
   rowRow 25/row
   rowRow 26/row
   rowRow 27/row
/table
T:\ftemptype prateek.xsl
?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0

xsl:output indent=yes/

xsl:template match=table
   result
 xsl:for-each select=row[ position() mod 5 = 1 ]
   page-sequence
 table
   xsl:copy-of select=./
   xsl:for-each select=following-sibling::row[ position() lt; 5 ]
 xsl:copy-of select=./
   /xsl:for-each
 /table
   /page-sequence
 /xsl:for-each
   /result
/xsl:template

/xsl:stylesheet

T:\ftempxt prateek.xml prateek.xsl
?xml version=1.0 encoding=utf-8?
result
page-sequence
table
rowRow 1/row
rowRow 2/row
rowRow 3/row
rowRow 4/row
rowRow 5/row
/table
/page-sequence
page-sequence
table
rowRow 6/row
rowRow 7/row
rowRow 8/row
rowRow 9/row
rowRow 10/row
/table
/page-sequence
page-sequence
table
rowRow 11/row
rowRow 12/row
rowRow 13/row
rowRow 14/row
rowRow 15/row
/table
/page-sequence
page-sequence
table
rowRow 16/row
rowRow 17/row
rowRow 18/row
rowRow 19/row
rowRow 20/row
/table
/page-sequence
page-sequence
table
rowRow 21/row
rowRow 22/row
rowRow 23/row
rowRow 24/row
rowRow 25/row
/table
/page-sequence
page-sequence
table
rowRow 26/row
rowRow 27/row
/table
/page-sequence
/result

Renzo Callant
Belgium

-Oorspronkelijk bericht-
Van: Jean-Philippe VALENTIN [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 20 december 2002 15:30
Aan: '[EMAIL PROTECTED]'
Onderwerp: FOP : OutOfMemoryError with a big XML file


Hi,

When I want transform my XML + XSL file I have got this error :
...
[INFO] [28]
Exception in thread main java.lang.OutOfMemoryError

(PS: I have 256Mo of RAM with 631Mo of limit and the error appear at 260Mo
of RAM use)

When I reduce the size of the XML file, it's work correctly.

What is the problem ?

Thanks

Jean-Philippe VALENTIN

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: page-sequence

2002-12-27 Thread Renzo Callant
XML-FILE :

?xml version=1.0 encoding=iso-8859-1?
table
   rowRow 1/row
   rowRow 2/row
   rowRow 3/row
   rowRow 4/row
   rowRow 5/row
   rowRow 6/row
   rowRow 7/row
   rowRow 8/row
   rowRow 9/row
   rowRow 10/row
   rowRow 11/row
   rowRow 12/row
   rowRow 13/row
   rowRow 14/row
   rowRow 15/row
   rowRow 16/row
   rowRow 17/row
   rowRow 18/row
   rowRow 19/row
   rowRow 20/row
   rowRow 21/row
   rowRow 22/row
   rowRow 23/row
   rowRow 24/row
   rowRow 25/row
   rowRow 26/row
   rowRow 27/row
/table

XSLT-FILE :
?xml version=1.0 encoding=iso-8859-1?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0

xsl:output indent=yes/

xsl:template match=table
   result
 xsl:for-each select=row[ position() mod 5 = 1 ]
   page-sequence
 table
   xsl:copy-of select=./
   xsl:for-each select=following-sibling::row[ position() lt; 5 ]
 xsl:copy-of select=./
   /xsl:for-each
 /table
   /page-sequence
 /xsl:for-each
   /result
/xsl:template

/xsl:stylesheet

RESULTING XML :

?xml version=1.0 encoding=utf-8?
result
page-sequence
table
rowRow 1/row
rowRow 2/row
rowRow 3/row
rowRow 4/row
rowRow 5/row
/table
/page-sequence
page-sequence
table
rowRow 6/row
rowRow 7/row
rowRow 8/row
rowRow 9/row
rowRow 10/row
/table
/page-sequence
page-sequence
table
rowRow 11/row
rowRow 12/row
rowRow 13/row
rowRow 14/row
rowRow 15/row
/table
/page-sequence
page-sequence
table
rowRow 16/row
rowRow 17/row
rowRow 18/row
rowRow 19/row
rowRow 20/row
/table
/page-sequence
page-sequence
table
rowRow 21/row
rowRow 22/row
rowRow 23/row
rowRow 24/row
rowRow 25/row
/table
/page-sequence
page-sequence
table
rowRow 26/row
rowRow 27/row
/table
/page-sequence
/result

or look at this stylesheet :

xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns:fo=http://www.w3.org/1999/xsl/Format;
xsl:output method=xml version=1.0 encoding=UTF-8 indent=yes/
xsl:template match=/
xsl:param name=blokken select=2/
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=docum 
page-height=297mm page-width=210mm margin-top=10mm margin-bottom=10mm 
margin-left=10mm margin-right=10mm
fo:region-body margin-top=15mm 
margin-bottom=11mm/
fo:region-before extent=15mm/
fo:region-after extent=11mm/
/fo:simple-page-master
fo:page-sequence-master master-name=pagina
fo:repeatable-page-master-reference 
master-reference=docum/
/fo:page-sequence-master
/fo:layout-master-set
xsl:for-each select=root/xml-prs/xml-rec[position() 
mod $blokken = 1]
fo:page-sequence master-reference=pagina
fo:static-content 
flow-name=xsl-region-before
...
/fo:static-content
fo:static-content 
flow-name=xsl-region-after
...
/fo:static-content
fo:flow flow-name=xsl-region-body
xsl:for-each 
select=.|following-sibling::xml-rec[position() lt; $blokken]
fo:table 
table-layout=fixed

...
/fo:table
/xsl:for-each
/fo:flow
/fo:page-sequence
/xsl:for-each
/fo:root
/xsl:template
/xsl:stylesheet

Renzo Callant
Belgium

-Oorspronkelijk bericht-
Van: Lee, Insoo [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 26 december 2002 21:57
Aan: '[EMAIL PROTECTED]'
Onderwerp: page-sequence



 
 1) Could somebody please share any sample xsl that would allow me to create
multiple page-sequence?
 I have multiple tables with combined over 1,000 rows and I understand that
I need to use multiple page-sequence per page to free up memory

  2) I'm not doing any 'page x of y' stuff, is there any other way to
improve the speed? Currently it takes over 5 minutes for 1,000 rows 

 Thanks much.
  IL


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Performance using SVG

2002-12-27 Thread Renzo Callant
Hi all,

i've included some kind of logo in my report using SVG. 
But this slows down the processing of my .PDF document.
Any tricks on how to improve performance using SVG in FOP ?

Renzo Callant
Belgium

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Performance using SVG

2002-12-27 Thread Renzo Callant
It processes 1 file at a time, that's right, but it can be a document of 200 
pages and more. And the logo is on every page.

-Oorspronkelijk bericht-
Van: Keiron Liddle [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 27 december 2002 16:13
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Performance using SVG


On Fri, 2002-12-27 at 16:05, Renzo Callant wrote:
 I use fop with the .bat file, so i don't start a jvm every time.

Huh? You mean you DO start a jvm every time. The command line fop can
only process one file at a time and then it finishes, which is what it
would be doing in the bat file.

 I only use 1 polygon, 3 rectangles and 1 text element, 
 so it's kind of simple.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Performance using SVG

2002-12-27 Thread Renzo Callant
What is a while ? Is that months, years ?
Thanks for the fast response.

-Oorspronkelijk bericht-
Van: Keiron Liddle [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 27 december 2002 16:43
Aan: [EMAIL PROTECTED]
Onderwerp: RE: Performance using SVG


On Fri, 2002-12-27 at 16:14, Renzo Callant wrote:
 It processes 1 file at a time, that's right, but it can be a document of 200 
 pages and more. And the logo is on every page.

That sort of optimisation is possible with the current developmnet, but
it will be a while before it is ready.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error in output to PostScript

2004-06-21 Thread Renzo Callant








Hi all,



Im trying to render a PostScript file with
FOP. 

But i get the following error :





[DEBUG] rendering areas to PostScript

[INFO] [1]

[DEBUG] Last page-sequence produced 1 pages.

[INFO] [2]

[ERROR] PostScript Command exceeded limit of 255 characters

org.apacge.fop.apps.FOPException: PostScript command exceeded
limit of 255 characters





Ive used the same .fo to render a .pdf of 4
pages, no problem with that.

Why do i get this error in generating a .ps ? 



Regards,



Renzo Callant