fix cXMLTemplate::clean_attributes method