public class TableNestChecker extends XMLFilterImpl
XMLFilter
that checks the proper nesting of table related tags.
Browser often "fixes" HTML by moving tables into the right place, so failure to generate proper tables can result in a hard-to-track bugs.
TODO: where to apply this in stapler? JellyClassTearOff creates XMLOutput. Perhaps we define a decorator? We can also wrap Script. would that work better?
Constructor and Description |
---|
TableNestChecker() |
TableNestChecker(ContentHandler target) |
Modifier and Type | Method and Description |
---|---|
static void |
applyTo(org.apache.commons.jelly.XMLOutput xo) |
void |
endElement(String uri,
String localName,
String qName) |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public TableNestChecker()
public TableNestChecker(ContentHandler target)
public static void applyTo(org.apache.commons.jelly.XMLOutput xo)
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
SAXException
Copyright © 2004–2019. All rights reserved.