The use of X-ray transition radiation to distinguish between protons and positrons of equal rigidity was investigated. A formula for the transition radiation spectrum from a medium-to-medium boundary was derived. The formation zone effect was found to limit the detection of transition radiation from ultrarelativistic particles. Curves showing the results of the spectrum calculations are presented.