Hi all,
I am trying to do an XML to HTML transformation using Xalan and
Servlets on
Tomcat. When I tried the following code:
String XML = "/XMLTest/test.xml";
String XSL = "/XMLTest/test.xsl";
processor=XSLTProcessorFactory.getProcessor();
processor.process(new XSLTInputSource(XML), new XSLTINputSource(XSL), new XSLTResultTarget(out));
I got an error saying that my XML ans XSL files can not be found.
Both of the files are in a folder under webapps, jakarta-tomcat-3.2.1\webapps\XMLTest. The servlet is in \webapps\XMLTest\WEB-INF\classes. Is there a specific place I should put the XML, XSL files so tomcat can find them or I have the wrong URI for my XML,XSL files? Any ideas?
Thanks