[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: problem using Xalan from within a servlet
I use the same technique which works with tomcat as well as JServ.
xsltInput = new XSLTInputSource(new FileInputStream(xmlfile)); XSLTProcessor processor = XSLTProcessorFactory.getProcessor(); processor.process( xsltInput, new XSLTInputSource(new FileInputStream(stylesheet)), new XSLTResultTarget(response.getOutputStream())); However, appart form classpath issues you have mentioned, one thing that I had to do was to pass the file names with full paths to the processor using: xmlfile = getServletContext().getRealPath(xmlfile); Hope this helps. If it doesn't, then we can look at the configurations. From: andreg@xxxxxxxxxxxxx Reply-To: xsl-list@xxxxxxxxxxxxxxxx To: XSL-List@xxxxxxxxxxxxxxxx Subject: problem using Xalan from within a servlet Date: Fri, 04 Aug 2000 01:28:17 -0500
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|