[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT internal tree representation in memory

Subject: XSLT internal tree representation in memory
From: "Phyllis Tarascio" <ptarascio@xxxxxxxxxxx>
Date: Wed, 24 Sep 2003 10:42:14 -0400
java tree representation
Hello,

This is my first posting to the XSL-List and I am fairly new to XSLT. Does
the XSLT transformer need to load in the whole source document in memory in
order to read and parse it to create the internal representation of the tree
in memory? Michael Kay's book has an explanation of how the transformer
process works in his XSLT 2nd edition, page 75, but it is unclear to me if
it needs to load the whole source document into memory before the process
can start.  I have searched the XSL FAQ archives and found two similar
issues where the users are transforming large source documents and are
getting Java out-of-memory exceptions. One suggestion was to use a database
to store the stylesheets and divide up the tasks. This is not an option for
me and the source documents to transform may be as large as 2 gig. Another
suggestion I saw on the FAQ was to divide the file into chunks and transform
the pieces and concatentate it back into one big file.

I have created a simple Java prototype that takes in (from disk) a xslt
stylesheet (file) and an xml source document (file) to transform it into
another xml source document. I am using JAXP and the StreamSource class to
transform the data and am currently using small source files to test my XSLT
style sheets.

Thank you for any suggestions or help that you can provide.


Phyllis



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.