package de.is24.deadcode4j.analyzer;

import de.is24.deadcode4j.Analyzer;

/**
 * Analyzes <code>*.tld</code> files: lists the function, listener, tag, tag extra info & validator classes being
 * referenced.
 *
 * @since 1.1.1
 */
public class TldAnalyzer extends XmlAnalyzer implements Analyzer {

    public TldAnalyzer() {
        super("_tld_", ".tld", "taglib");
        registerClassElement("function-class");
        registerClassElement("listener-class");
        registerClassElement("tag-class");
        registerClassElement("tei-class");
        registerClassElement("validator-class");
    }

}

@@ -588,21 +588,214 @@
 or-class%22);%0A
+        // this was valid at least for J2EE 1.2, see http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd%0A        registerClassElement(%22tagclass%22);%0A        registerClassElement(%22teiclass%22);%0A
     %7D%0A%0A%7D%0A

use element names for a really old, but still applicable DTD