@Override
    protected boolean matches (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;
    }
@Override
    protected boolean matches (XmlTag element)