//"/home/client/java/newinstance/www/javaxml/techbooks/XSL/computerBooks.xsl";
res.setContentType("text/html");
// Connect and get XML listing of books
//URL getBooksURL = new URL("http", hostname, portNumber, file);
URL getBooksURL = new URL("http://newInstance.com/cgi/supplyBooks.pl");
InputStream in = getBooksURL.openStream();
try {
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
// Transform XML with XSL stylesheet
processor.process(new XSLTInputSource(in),
new XSLTInputSource(new FileInputStream(stylesheet)),
new XSLTResultTarget(res.getOutputStream()));
} catch (Exception e) {
PrintWriter out = res.getWriter();
out.println("Error: " + e.getMessage());
out.close();
}