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

Xalan Problems

Subject: Xalan Problems
From: "Foo Shi Hao" <zeon@xxxxxxxxxxxx>
Date: Thu, 26 Jul 2001 00:01:58 +0800
xalan problems
Hi 2 all, posting here for the first time.
I am having this error for some time now,really hoping that someone could help...

I have a JSP page that calls a java bean to parse (XML and XSL) so that it displays the result in the JSP page. But i've been receving this same errors.
Could it be that i did not set up my classes correctly? i just extracted the xalan files into c:\, added into autoexec classpath. Then i copied the files in \bin(for Xalan) to (C:\jdk1.3.1\jre\lib\ext).

what i have:
JDK 1.3.1
xalan-j_2_2_D6.zip
Tomcat 3.2.2

Autoexec.bat:
SET CLASSPATH="C:\Program Files\JavaSoft\JRE\1.3.1\lib\ext\QTJava.zip;C:\xalan-j_2_2_D6"
SET QTJAVA="C:\Program Files\JavaSoft\JRE\1.3.1\lib\ext\QTJava.zip"
SET CATALINA_HOME=C:\jakarta-tomcat-3.2.2
SET JAVA_HOME=C:\jdk1.3.1

Java Bean file(XBean.java--alreay tried to complied(successful doh)):
package Institution;

import java.io.*;
import org.xml.sax.SAXException;
import org.apache.xalan.xslt.XSLTProcessorFactory;
import org.apache.xalan.xslt.XSLTResultTarget;
import org.apache.xalan.xslt.XSLTProcessor;
import org.apache.xalan.xslt.XSLTInputSource;
import java.net.*;
import java.lang.Object.*;

public class XBean
{
    public XBean(){}	
    public java.io.OutputStream parse() 
		  throws java.io.IOException,
			       java.net.MalformedURLException,
						 org.xml.sax.SAXException
		{
		   java.io.ByteArrayOutputStream b = new java.io.ByteArrayOutputStream();
			 XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
				processor.process(new XSLTInputSource("http://localhost:8080/Institution/"+"newsletter.xml"),
				new XSLTInputSource("http://localhost:8080/Institution/"+"newsletter.xsl"), new XSLTResultTarget(b));
				return b;}
}


-- 

Get your free email from www.doramail.com with 30 Megs of disk space in webhosting and e-mail storage!





Powered by Outblaze

 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.