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 ) ; } }
Adds the given attribute to the set of collected attributes but only if there is a currently open element .