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

Re: Embedded Xsl

Subject: Re: Embedded Xsl
From: Dipesh Khakhkhar <dkhakhkh@xxxxxxxxxxxxxxx>
Date: Thu, 26 Feb 2004 12:19:23 -0500
transformerfactory outofmemory
Hi,

Thanks for replying.
I will read about it and after doing little research i came to know that using 
SAX memory consumption is less.

I tried to use the following java code as pointed by someone to use Trax:

Sorry for including java code in xslt list. Just to clarify the problem i am 
doing this.

------------------------------------------------------
import java.io.File;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;

public class Test{    
public static void main(String[] args) throws Exception    {        
TransformerFactory factory = TransformerFactory.newInstance();    
Source config = new StreamSource(new File("Process.xsl"));        
Transformer transformer = factory.newTransformer(config);
Source source = new StreamSource(new File("Input.xml"));
Result result = new StreamResult(new File("output.dat"));
transformer.transform(source, result);    
}
}
------------------------------------------------------

I used input file of 115 MB.
But it gave me OutOfMemory exception.

Well  thanks anyway. I will try to find something.

Regards,
Dipesh
Paul wrote:

I'm learning how to do this right now. If you are not familiar with java
(as I am not), this doesn't come easy.

However, have a look at Sun's documentaion on this:

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPIntro.html#wp65584

Also, download the Xalan xslt processor. With the download you will find
many good examples.

Paul


 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.