Enquiries are continuing after a person died on a trainline between Leeds and Doncaster.