Dear All:

I try to run the sample code (SimpleXSLTServlet) of Apache's Xalan XSLT.
The document said :

========================================================================

To run this servlet: place spec.xsl and trax.xml (from the
samples/AppletXMLtoHTML directory) in the
directory where your servlet engine looks for HTTP document
=========================================================================

I put the java code of  SimpleXSLTServlet.java to
Tomcat-Home/webapps/examples .
But what does " the
directory where your servlet engine looks for HTTP document" mean ?

I read the source code , it uses

Source xmlSource = new StreamSource(new URL("file:trax.xml").openStream());

to get the XML source.

I've tried to put xml and xsl files in Tomcat-Home/webapps/examples or
Tomcat-Home/webapps/ROOT.
Both do not work , and I get a "xxx.xml file not found" error.

Could anyone please help me to figure this out ?

Thanks in advance.

    Ken @ Taipei . Taiwan








--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to