While this technology is not available as yet, Toyota has developed an engine that runs on Ammonia who's atoms are constructed of two parts hydrogen and one part oxygen. No carbon exists in Ammonia so perhaps this will eventually be the solution of zero carbon emission rail and automobiles.