Hi,
Hi i dont know what iPlanet is .... but i think i can help u . i have a code with servlet that does the same thing like the standalone( i understand at the command prompt) where u specify the xml and xsl and output.. the code snippet for servlet is as follows
I GUESS IT MIGHT HELP YOU. HAVE A NICE DAY
bye,
vikram
CODE FOR TRANSFORM1.JAVA
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.xml.sax.SAXException;
import org.apache.xalan.xslt.XSLTProcessorFactory;
import org.apache.xalan.xslt.XSLTInputSource;
import org.apache.xalan.xslt.XSLTResultTarget;
import org.apache.xalan.xslt.XSLTProcessor;
public class Transform1 extends HttpServlet {
public void doGet (HttpServletRequest req, HttpServletResponse resp) throws
ServletException, IOException {
resp.setContentType("text/html");
ServletOutputStream out = resp.getOutputStream();
try{
// Have the XSLTProcessorFactory obtain a interface to a
// new XSLTProcessor object.
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
processor.process(new XSLTInputSource("/home/manch_v/tomcat/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/contents.xml"),
new XSLTInputSource("/home/manch_v/tomcat/jakarta-tomcat-3.2.1/webapps/examples/WEB-INF/classes/JavaXML.html.xsl"),
new XSLTResultTarget(out));
}catch(Exception ex){
out.println("Manche");}
out.close();
}//end doGet
}// end class
Get your FREE download of MSN Explorer at http://explorer.msn.com