xsl-list
[Top] [All Lists]

RE: SAX for XSL Transformation

2005-02-18 13:22:44
Thanks Michael, I already had -Xms256m -Xmx512m. But the problem was , when memory is low n the system , I was getting
Cannot allocate memory for initializeMarkAndAllocBits(allocbits1).
I will try to get the xsl transformation to be compiled ta class and try again.

BTW the J2SE 1.4 from IBM was using the Xalan implementation.

Santhosh.



From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: RE: [xsl] SAX for XSL Transformation
Date: Thu, 17 Feb 2005 22:19:50 -0000

Although you can supply a SAXSource as the input to your transformation, the XSLT engine will generally build a tree in memory. This will usually be much
more efficient than a DOM tree, but it will still be a tree.

> I'm trying to transform a 80M
> file using an XSL stylesheet to an output stream.

80M is feasible but challenging. You should allocate at least 512M of memory
to the java VM (use -Xmx512M).

> I'm assuming that the JAXP API uses a DOM object to do this
> transformation.

The JAXP API is just an API. What actually happens internally depends on
which implementation of the JAXP API you are using, e.g. Xalan, Saxon,
Oracle.

Michael Kay
http://www.saxonica.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>
--~--




--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>