@Override
    public boolean matches(XmlTag element) {
        if (super.matches(element) && element.getAttribute("match", null) != null) {
            final XsltTemplate t = XsltElementFactory.getInstance().wrapElement(element, XsltTemplate.class);
            final QName mode = t.getMode();
            if (mode != null) {
                if (QNameUtil.equal(myMode, mode)) {
                    return true;
                }
            } else {
                return myMode == null;
            }
        }
        return false;
    }
@Override
    public boolean matches(XmlTag element)