if(nodeName.indexOf(':') > 0) {
nodeName = nodeName.substring(nodeName.indexOf(':'));
}
// tag
if (nodeName.equals(JSP11TLDNames.TAG)) {
CMElementDeclaration ed = createElementDeclaration(document, child);
if (ed != null) {
document.fElements.setNamedItem(ed.getNodeName(), ed);
}
}
// tag-file
else if (nodeName.equals(JSP20TLDNames.TAG_FILE) && child.getNodeType() == Node.ELEMENT_NODE && child.hasChildNodes()) {
Element tagFileElement = (Element) child;
Node path = tagFileElement.getFirstChild();
while (path != null) {
if (path.getNodeType() == Node.ELEMENT_NODE && (JSP20TLDNames.PATH.equals(path.getNodeName()) || JSP20TLDNames.PATH.equals(path.getLocalName()))) {
String pathValue = getContainedText(path);
if (pathValue != null && pathValue.length() > 0) {
CMElementDeclarationImpl ed = (CMElementDeclarationImpl) createElementDeclaration(document, tagFileElement, pathValue);
if (ed != null) {
document.fElements.setNamedItem(ed.getNodeName(), ed);
}
}
}
path = path.getNextSibling();
}