throw createSAXException("Class is not a TagLibrary: " + uri + " so taglib instantiation failed",e);
}
}
}
if (taglib != null) {
TagScript script = taglib.createTagScript(localName, list);
if ( script != null ) {
configureTagScript(script);
// clone the attributes to keep them around after this parse
script.setSaxAttributes(new AttributesImpl(list));
// now iterate through through the expressions
int size = list.getLength();
for (int i = 0; i < size; i++) {
String attributeName = list.getLocalName(i);
String attributeValue = list.getValue(i);
Expression expression =
taglib.createExpression(
getExpressionFactory(),
script,
attributeName,
attributeValue);
if (expression == null) {
expression = createConstantExpression(localName, attributeName, attributeValue);
}
script.addAttribute(attributeName, expression);
}
}
return script;
}
return null;