PURPOSE: Phase II trial to study the effectiveness of gemtuzumab ozogamicin combined with fludarabine and total-body irradiation followed by donor peripheral stem cell or bone marrow transplantation in treating patients who have advanced acute myeloid leukemia or myelodysplastic syndrome.