return temp;
} catch (IOException ioe) {
throw new ResourceMissingException(stylesheetURI, "Stylesheet", "Unable to read stylesheet from [" + stylesheetURI + "]. Please check the stylesheet URL", ioe);
} catch (TransformerConfigurationException tce) {
log.error( "XSLT::getTemplates() : unable to obtain TemplatesHandler due to TRAX misconfiguration!", tce);
throw new GeneralRenderingException("XSLT: current TRAX configuration does not allow for TemplateHandlers. Please reconfigure/reinstall your TRAX implementation.", tce);
} catch (SAXParseException px) {
throw new GeneralRenderingException("XSLT:getTemplates(): SAXParseExeption: " +
px.getMessage() + " line:" + px.getLineNumber() + " col:"+px.getColumnNumber(), px);
} catch (SAXException sx) {
// Catch the sax exception so we can report line number info
if ( null != sx.getException() && (sx.getException() instanceof TransformerException)) {
TransformerException trx = (TransformerException)sx.getException();
throw new GeneralRenderingException(trx.getMessageAndLocation(), trx);
}
throw sx;
}
}
}