code: public void addAttribute(
          String uri,
          String localName,
          String rawName,
          String type,
          String value,
          boolean XSLAttribute)
          throws SAXException
      {      
          if (m_elemContext.m_startTagOpen)
          {
              ensurePrefixIsDeclared(uri, rawName);
              addAttributeAlways(uri, localName, rawName, type, value, false);
          }
  
      }
docs: Adds the given attribute to the set of attributes, and also makes sure
  that the needed prefix/uri mapping is declared, but only if there is a
  currently open element.
  
  @param uri the URI of the attribute
  @param localName the local name of the attribute
  @param rawName    the qualified name of the attribute
  @param type the type of the attribute (probably CDATA)
  @param value the value of the attribute
  @param XSLAttribute true if this attribute is coming from an xsl:attribute element
  @see ExtendedContentHandler#addAttribute(String, String, String, String, String)