RE: FOP : OutOfMemoryError with a big XML file

2002-12-26 Thread Peter Sparkes
And thank from me; I can now do the whole file in one go.

Peter

-Original Message-
From: Jean-Philippe VALENTIN [mailto:[EMAIL PROTECTED]
Sent: 23 December 2002 09:13
To: 'Oleg Tkachenko '; '[EMAIL PROTECTED] '
Subject: RE: FOP : OutOfMemoryError with a big XML file


Thanks for your response !

I have fixed the parameter -Xmx250m on the command file fop.bat to limit the
max use of memory of the JVM at 250Mo and the parsing of all the document is
OK.

Jean-Philippe

-Message d'origine-
De: Oleg Tkachenko
A: [EMAIL PROTECTED]
Date: 22/12/02 12:43
Objet: Re: FOP : OutOfMemoryError with a big XML file

Peter Sparkes wrote:

 Please, how do you Increase memory settings of the JVM. on a Windows
 system

See http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java.html
--
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]



RE: FOP : OutOfMemoryError with a big XML file

2002-12-23 Thread Jean-Philippe VALENTIN
Thanks for your response !

I have fixed the parameter -Xmx250m on the command file fop.bat to limit the
max use of memory of the JVM at 250Mo and the parsing of all the document is
OK.

Jean-Philippe

-Message d'origine-
De: Oleg Tkachenko
A: [EMAIL PROTECTED]
Date: 22/12/02 12:43
Objet: Re: FOP : OutOfMemoryError with a big XML file

Peter Sparkes wrote:

 Please, how do you Increase memory settings of the JVM. on a Windows
 system

See http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java.html
-- 
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: FOP : OutOfMemoryError with a big XML file

2002-12-22 Thread Oleg Tkachenko
Peter Sparkes wrote:
Please, how do you Increase memory settings of the JVM. on a Windows
system
See http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java.html
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP : OutOfMemoryError with a big XML file

2002-12-21 Thread Oleg Tkachenko
Jean-Philippe VALENTIN wrote:
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 ?
That's 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]


RE: FOP : OutOfMemoryError with a big XML file

2002-12-21 Thread Peter Sparkes
Hi

Please, how do you Increase memory settings of the JVM. on a Windows
system

Peter

-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Sent: 21 December 2002 20:36
To: [EMAIL PROTECTED]
Subject: Re: FOP : OutOfMemoryError with a big XML file


Jean-Philippe VALENTIN wrote:
 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 ?
That's 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: 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]