if (validate) {
HtmlCacheEntry htmlCacheEntry = _cache.getHtmlEntry();
htmlCacheEntry.getHtmlElementCache().clearCache();
WodCacheEntry wodCacheEntry = _cache.getWodEntry();
IFile wodFile = wodCacheEntry.getFile();
IWodModel wodModel = wodCacheEntry.getModel();
for (FuzzyXMLElement woElement : _woElements) {
String woElementName = woElement.getAttributeValue("name");
int startOffset = woElement.getOffset() + woElement.getNameOffset() + 1;
int endOffset = startOffset + woElement.getNameLength() - 1;
HtmlElementName elementName = new HtmlElementName(htmlCacheEntry.getFile(), woElementName, startOffset, endOffset);
htmlCacheEntry.getHtmlElementCache().addHtmlElement(elementName);
if (wodModel != null) {
IWodElement wodElement = wodModel.getElementNamed(woElementName);
if (wodElement == null) {
WodProblem undefinedElement = new WodBindingValueProblem(wodElement, new SimpleWodBinding(null, "name", null), "name", "The element '" + woElementName + "' is not defined in " + wodFile.getName(), null, -1, false);
inlineProblems.add(new InlineWodProblem(woElement, undefinedElement, _cache));
}
}