set the attribute value (otherwise node attributes are read-only)