A team at an Oxford hospital successfully saved a patient's leg - despite being told it needed amputating.