}
}
// getting TLDs from xmlns
try {
this.doc = new FuzzyXMLParser().parse(HTMLUtil.scriptlet2space(source,false));
FuzzyXMLElement root = (FuzzyXMLElement)XPath.selectSingleNode(doc.getDocumentElement(),"*");
if(root!=null){
FuzzyXMLAttribute[] attrs = root.getAttributes();
for(int i=0;i<attrs.length;i++){
if(attrs[i].getName().startsWith("xmlns:")){
String[] dim = attrs[i].getName().split(":");
if(dim.length > 1){
TLDInfo info = TLDInfo.getTLDInfo(file,dim[1],attrs[i].getValue());
if(info!=null){
tldInfoList.add(info);
}
}
}
}
}
} catch(Exception ex){
HTMLPlugin.logException(ex);
}
// getting TLDs from included JSP defined in web.xml
try {
if(include){
IPath path = new Path(webapproot).append("/WEB-INF/web.xml");
IFile webXML = file.getProject().getFile(path);
if(webXML!=null && webXML.exists()){
FuzzyXMLDocument doc = new FuzzyXMLParser().parse(webXML.getContents());
FuzzyXMLNode[] nodes = HTMLUtil.selectXPathNodes(doc.getDocumentElement(),
"/web-app/jsp-config/jsp-property-group[url-pattern='*.jsp']");
for(int i=0;i<nodes.length;i++){
FuzzyXMLNode[] includes = HTMLUtil.selectXPathNodes((FuzzyXMLElement)nodes[i],"/include-prelude|/include-coda");
for(int j=0;j<includes.length;j++){