All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nu.validator.servlet.PageEmitter Maven / Gradle / Ivy

Go to download

An HTML-checking library (used by https://html5.validator.nu and the HTML5 facet of the W3C Validator)

There is a newer version: 20.7.2
Show newest version
/* This code was generated by nu.validator.tools.SaxCompiler. Please regenerate instead of editing. */
package nu.validator.servlet;
public final class PageEmitter {
private PageEmitter() {}
public static void emit(org.xml.sax.ContentHandler contentHandler, nu.validator.servlet.VerifierServletTransaction t) throws org.xml.sax.SAXException {
org.xml.sax.helpers.AttributesImpl __attrs__ = new org.xml.sax.helpers.AttributesImpl();
try {
contentHandler.startDocument();
contentHandler.startPrefixMapping("", "http://www.w3.org/1999/xhtml");
__attrs__.clear();
__attrs__.addAttribute("http://www.w3.org/XML/1998/namespace", "lang", "xml:lang", "CDATA", "en");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "html", "html", __attrs__);
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "head", "head", __attrs__);
t.emitIcon(); 
t.emitStyle(); 
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "title", "title", __attrs__);
t.emitTitle(false); 
contentHandler.characters(__chars__, 0, 18);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "title", "title");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "head", "head");
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "body", "body", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "banner");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "div", "div", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "title");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "h1", "h1", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "href", "href", "CDATA", ".");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "a", "a", __attrs__);
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "span", "span", __attrs__);
contentHandler.characters(__chars__, 18, 15);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "span", "span");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "a", "a");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "h1", "h1");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "div", "div");
__attrs__.clear();
__attrs__.addAttribute("", "class", "class", "CDATA", "disclaimer");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "p", "p", __attrs__);
contentHandler.characters(__chars__, 33, 74);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "p", "p");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "top");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "h2", "h2", __attrs__);
t.emitTitle(true); 
contentHandler.endElement("http://www.w3.org/1999/xhtml", "h2", "h2");
t.emitForm(); t.emitScript(); 
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "results");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "div", "div", __attrs__);
t.validate(); 
contentHandler.endElement("http://www.w3.org/1999/xhtml", "div", "div");
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "hr", "hr", __attrs__);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "hr", "hr");
__attrs__.clear();
__attrs__.addAttribute("", "id", "id", "CDATA", "about");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "div", "div", __attrs__);
__attrs__.clear();
contentHandler.startElement("http://www.w3.org/1999/xhtml", "p", "p", __attrs__);
__attrs__.clear();
__attrs__.addAttribute("", "href", "href", "CDATA", "about.html");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "a", "a", __attrs__);
contentHandler.characters(__chars__, 107, 18);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "a", "a");
contentHandler.characters(__chars__, 125, 3);
__attrs__.clear();
__attrs__.addAttribute("", "href", "href", "CDATA", "about.html#issues");
contentHandler.startElement("http://www.w3.org/1999/xhtml", "a", "a", __attrs__);
contentHandler.characters(__chars__, 128, 15);
contentHandler.endElement("http://www.w3.org/1999/xhtml", "a", "a");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "p", "p");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "div", "div");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "body", "body");
contentHandler.endElement("http://www.w3.org/1999/xhtml", "html", "html");
contentHandler.endPrefixMapping("");
} finally {
contentHandler.endDocument();
}
}
private static final char[] __chars__ = { ' ', '-', ' ', 'N', 'u', ' ', 'H', 'T', 'M', 'L', ' ', 'C', 'h', 'e', 'c', 'k', 'e', 'r', 'N', 'u', ' ', 'H', 'T', 'M', 'L', ' ', 'C', 'h', 'e', 'c', 'k', 'e', 'r', 'T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'a', 'n', ' ', 'e', 'x', 'p', 'e', 'r', 'i', 'm', 'e', 'n', 't', 'a', 'l', ' ', 'c', 'h', 'e', 'c', 'k', 'e', 'r', ' ', 'a', 'n', 'd', ' ', 'i', 't', 's', ' ', 'b', 'e', 'h', 'a', 'v', 'i', 'o', 'r', ' ', 'r', 'e', 'm', 'a', 'i', 'n', 's', ' ', 's', 'u', 'b', 'j', 'e', 'c', 't', ' ', 't', 'o', ' ', 'c', 'h', 'a', 'n', 'g', 'e', 'A', 'b', 'o', 'u', 't', ' ', 't', 'h', 'i', 's', ' ', 'c', 'h', 'e', 'c', 'k', 'e', 'r', ' ', '\u2022', ' ', 'R', 'e', 'p', 'o', 'r', 't', ' ', 'a', 'n', ' ', 'i', 's', 's', 'u', 'e' };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy