getResIdFromAttribute