// new XSLTProcessor object.
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
// Have the XSLTProcessor processor object transform "foo.xml" to
// System.out, using the XSLT instructions found in "foo.xsl".
processor.process(new XSLTInputSource(url),
new XSLTInputSource(xsl),
new XSLTResultTarget(out));
} catch(SAXException sexp) {
throw new JspException("SAXParser Exception: " + sexp.getMessage());
}