public XSLProcessorImpl getStylesheet( String reqDir, String xslFile ) throws XmlBlasterException, IOException
{
String xslPath = reqDir+"/"+xslFile+".xsl";
XSLProcessorImpl xsl = new XSLProcessorImpl();
xsl.setParser(createParser());
try {
String url = new URL("file", "", xslPath).toString();
log.info("Reading from "+url);
xsl.loadStylesheet( new InputSource( new URL("file", "", xslPath).toString() ) );
log.info("Successfully read from "+url);
}
catch ( Exception e) {
log.severe(e.toString());
throw new XmlBlasterException(ME,"Could not read XSL file.");