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

RE: I can't transform XML in code...

Subject: RE: I can't transform XML in code...
From: "John Wang" <jwang@xxxxxxxxxxx>
Date: Fri, 27 Apr 2001 12:31:33 -0500
xsltinputsource download
import org.apache.xalan.xslt.XSLTProcessor;
import org.apache.xalan.xslt.XSLTResultTarget;
import org.apache.xalan.xslt.XSLTInputSource;
import org.apache.xalan.xslt.XSLTProcessorFactory;
//import com.lotus.xsl.*;
import org.xml.sax.SAXException;
import java.io.*;
import org.xml.sax.*;

public class Test30
{
	public static void main(String[] args)
	{
		try
		{
		XSLTInputSource inputXML = new XSLTInputSource("trying1.xml");
		XSLTInputSource inputXSL = new XSLTInputSource("trying.xsl");
		XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
		processor.process(inputXML, inputXSL, new XSLTResultTarget(System.out));
		}catch(Exception e)
		{
			System.out.println(e);
		}
	}
}

I just comment out import com.lotus.xsl.*; and compile it under cocoon
package
it has no errors.

Maybe you need download Cocoon to find out all of the library you need.
here is their website.

http://xml.apache.org/cocoon/

hope this help.

-John
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Poh Justin KT
Sent: Friday, April 27, 2001 3:18 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  I can't transform XML in code...

Hi, i try to run this code to transform XML but without success, it give me
an error, "no such method error"

Can anyone plse help me out with this? it is very urgent...

import org.apache.xalan.xslt.XSLTProcessor;
import org.apache.xalan.xslt.XSLTResultTarget;
import org.apache.xalan.xslt.XSLTInputSource;
import org.apache.xalan.xslt.XSLTProcessorFactory;
import com.lotus.xsl.*;
import org.xml.sax.SAXException;
import java.io.*;
import org.xml.sax.*;

public class test30
{
        public static void main(String[] args)
        {
                try
                {
                XSLTInputSource inputXML = new
XSLTInputSource("trying1.xml");
                XSLTInputSource inputXSL = new
XSLTInputSource("trying.xsl");
                XSLTProcessor processor =
XSLTProcessorFactory.getProcessor();
                processor.process(inputXML, inputXSL, new
XSLTResultTarget(System.out));
                }catch(Exception e)
                {
                        System.out.println(e);
                }
        }
}

Thanks!

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



 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.