code: private boolean excludeResultNSDecl(String prefix, String uri)
            throws TransformerException
    {
  
      if (uri != null)
      {
        if (uri.equals(Constants.S_XSLNAMESPACEURL)
                || getStylesheet().containsExtensionElementURI(uri))
          return true;
  
        if (containsExcludeResultPrefix(prefix, uri))
          return true;
      }
  
      return false;
    }
docs: Tell if the result namespace decl should be excluded.  Should be called before
  namespace aliasing (I think).
  
  @param prefix non-null reference to prefix.
  @param uri reference to namespace that prefix maps to, which is protected
  for null, but should really never be passed as null.
  
  @return true if the given namespace should be excluded.
  
  @throws TransformerException