code: public boolean addAttributeAlways(
          String uri,
          String localName,
          String rawName,
          String type,
          String value,
          boolean XSLAttribute)
      {
          boolean was_added;
  //            final int index =
  //                (localName == null || uri == null) ?
  //                m_attributes.getIndex(rawName):m_attributes.getIndex(uri, localName);        
              int index;
  //            if (localName == null || uri == null){
  //                index = m_attributes.getIndex(rawName);
  //            }
  //            else {
  //                index = m_attributes.getIndex(uri, localName);
  //            }
              if (localName == null || uri == null || uri.length() == 0)
                  index = m_attributes.getIndex(rawName);
              else {
                  index = m_attributes.getIndex(uri,localName);
              }
              if (index >= 0)
              {
                  /* We've seen the attribute before.
                   * We may have a null uri or localName, but all
                   * we really want to re-set is the value anyway.
                   */
                  m_attributes.setValue(index,value);
                  was_added = false;
              }
              else
              {
                  // the attribute doesn't exist yet, create it
                  m_attributes.addAttribute(uri, localName, rawName, type, value);
                  was_added = true;
              }
              return was_added;
          
      }
docs: Adds the given attribute to the set of attributes, even if there is
  no currently open element. This is useful if a SAX startPrefixMapping()
  should need to add an attribute before the element name is seen.
  
  @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
  @return true if the attribute was added,
  false if an existing value was replaced.