Re: [xsl] Embedded Xsl

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

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 javax.xml.transform.*;

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.

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:

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


 XSL-List info and archive:

Current Thread