Given what you told us it's unlikely that you can make it work without
more memory in your computer. Maybe, if we had access to your XML and
stylesheet, one of us might have another suggestion. It would also be
good for us to have a really large document like yours that we can do
tests with.

Anyway, I'd try to simplify the stylesheet as much as you can, doing as
much as you can with property inheritance. Remove any attribute that is
not absolutely necessary. Don't nest elements where it's not absolutely
necessary. Remove page numbering just as a test to see if it changes
anything. Separate the XSLT process from the FO formatting so these two
don't run at the same time. XSLT alone may use up quite a bit of memory.

Please give us feedback even if you manage to make it run. Thanks.

On 15.02.2007 22:25:08 Krishna.Cherla wrote:
> Hello All,
> 
> As i have discussed in the previous threads I get an  Exception in
> thread "main" java.lang.OutOfMemory Error when I try to pdf xml
> documents.
> 
> *     I tried increasing the memory available to the JVM (used this
> command line option:
>       C:\Program Files\Altova\FOP\build>java -Xmx512m -jar fop.jar fop
> -xsl test.xsl -xml test.xml -pdf test.pdf ). This helped me convert a
> 777KB Xml document into a PDF Document(about 100 pages). But when I try
> converting an 4500KB Xml Document(approx. about 400 pages long) it gives
> me an out of memory error again.I can't increase the memory more than
> that as my physical RAM is only 523 MB.
> *     I donot have any figures in the document.
> *     I do use a page numbering scheme that includes a total number of
> pages in the document that makes use of forward referencingand I cannot
> bypass this. 
> *     I have three page sequences but I'm afraid can't break the
> document into any more. And each sequence does contain a lot of fo
> elements.
> 
> Can anybody guide me more  in regards to this?
> 
> Sindhu
> 


Jeremias Maerki


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

Reply via email to