• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML, XSL URI

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic