@Override
    public void startElement(String ns, String localName, String qName,
            Attributes attributes) throws SAXException {
        if ("http://www.w3.org/1999/xhtml" == ns
                && "template".equals(localName)) {
            numberOfTemplatesDeep++;
            if (numberOfTemplatesDeep != 1) {
                return;
            }
        } else if (numberOfTemplatesDeep > 0) {
            return;
        }
        delegate.startElement(ns, localName, qName, attributes);
    }
@throws SAXException
@see org.xml.sax.ContentHandler#startDocument()
src/nu/validator/xml/templateelement/TemplateElementDroppingContentHandlerWrapper.java