It sounds as if you are running the transformation from within Ant. As a
first step, I would try seeing if you can get it to run from the command
line. That will tell you whether the problem is specific to the Ant
environment - it eliminates one of the possible causes.
Saxon does have the ability to process the source document in streaming mode
which will reduce memory requirements (see
http://www.saxonica.com/documentation/sourcedocs/serial.html
), but frankly, 20Mb shouldn't be a problem.
If it's still failing you need to tell us more precisely what you are doing
and more precisely how it failed.
"my computer crashes" sounds pretty drastic - running out of memory does not
normally cause your computer to crash.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Marijan (Mario) Madunic [mailto:hajduk(_at_)imag(_dot_)net]
Sent: 20 November 2008 16:11
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Issue with large XML doc and crashes
(Using Saxon9 on WindowsXP, dual core 6400, 3.25gigs ram)
The doc I'm working with is 20megs+ and it is being parsed
using a for-each statement, while being inserted into a main
doc. (What is happening is more than likely a memory issue,
as my computer crashes during the transform; I've figured it
out to be more than half done when this happens.) I have my
ANT_OPTS set the following: set ANT_OPTS="-Xmx1272m"
But my question concerning XSLT is. Is there a function that
discards the current node from memory once it has been
parsed. Or am I way off base here. Want to look up this
avenue before doing a reinstall of Java and ANT and delve
deeper into if the issue is something in my OS.
Thanks
Marijan (Mario) Madunic
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--