code: public void addAttribute(String name, final String value)
      {
          if (m_elemContext.m_startTagOpen)
          {
              final String patchedName = patchName(name);
              final String localName = getLocalName(patchedName);
              final String uri = getNamespaceURI(patchedName, false);
  
              addAttributeAlways(uri,localName, patchedName, "CDATA", value, false);
           }
      }
docs: Adds  the given attribute to the set of collected attributes,
  but only if there is a currently open element.
  
  @param name the attribute's qualified name
  @param value the value of the attribute