/** * If the tag name belongs to a plugin namespace-wise, check its local name to make sure it's * correct. */ protected final void verifyTagName(String namespaceURI, String localName, String qName) throws SAXException { if (options.pluginURIs.contains(namespaceURI)) { // make sure that this is a valid tag name boolean correct = false; for (Plugin p : options.activePlugins) { if (p.isCustomizationTagName(namespaceURI, localName)) { correct = true; break; } } if (!correct) { error(Messages.ERR_ILLEGAL_CUSTOMIZATION_TAGNAME.format(qName)); startCutting(); } } }