@Override
 public void startElement(TagNode node) {
   if ("jsp:include".equals(node.getNodeName())) {
     createViolation(
         node.getStartLinePosition(), "Use an include action instead of an include directive.");
   }
 }
Ejemplo n.º 2
0
 private static void scanElementTag(DefaultNodeVisitor visitor, TagNode node) {
   if (!node.isEndElement()) {
     visitor.startElement(node);
   }
   if (node.isEndElement() || node.hasEnd()) {
     visitor.endElement(node);
   }
 }