boolean (XmlTag element) { if (XsltSupport.isTemplate(element, true)) { final XmlAttribute attribute = element.getAttribute("name", null); if (myName == null || (attribute != null && myName.equals(attribute.getValue()))) { return true; } } return false; }