* @param is the input stream to the taglib
*/
private TldTaglib parseTld(InputStream is)
throws JspParseException, IOException
{
TldTaglib taglib = new TldTaglib();
if (is instanceof ReadStream) {
Path path = ((ReadStream) is).getPath();
path.setUserPath(path.getURL());
}
String schema = null;
if (_webApp.getJsp() == null
|| _webApp.getJsp().isValidateTaglibSchema()) {
schema = getSchema();
}
try {
Config config = new Config();
config.setEL(false);
config.configure(taglib, is, schema);
} catch (ConfigException e) {
log.warning(e.toString());
log.log(Level.FINER, e.toString(), e);
taglib.setConfigException(e);
} catch (Exception e) {
log.warning(e.toString());
log.log(Level.FINER, e.toString(), e);
taglib.setConfigException(e);
} finally {
is.close();
}
/* XXX: jsp/18n0 handled on init