The here-described spectrometer was developed for the extended x-ray absorption fine structure spectroscopy of high-density plasmas at the National Ignition Facility. It employs as the Bragg reflecting element a new type of toroidally bent crystal with a constant and very large major radius R and a much smaller, locally varying, minor radius r. The focusing properties of this crystal and the experimental arrangement of the source and detector make it possible to (a) fulfill the conditions for a perfect imaging of an ideal point source for each wavelength, (b) obtain a high photon throughput, (c) obtain a high spectral resolution by eliminating the effects of source-size broadening, and (d) obtain a one-dimensional spatial resolution with a high magnification perpendicular to the main dispersion plane.