code: public boolean accept(final Node aNode) {
  
          if (oldPrefix.equals(aNode.getPrefix())) {
              // Process any nodes on the form [oldPrefix]:something.
              return true;
          }
  
          if (aNode instanceof Attr) {
  
              // These cases are defined by attribute properties.
              final Attr attribute = (Attr) aNode;
  
              if (isNamespaceDefinition(attribute)
                      || isElementReference(attribute)
                      || isTypeAttributeWithPrefix(attribute)
                      || isExtension(attribute)) {
                  return true;
              }
          }
  
          // Nopes.
          return false;
      }
docs: {@inheritDoc}