High-resolution spectroscopy on an X-ray absorption beamline.