We create a transient Bragg grating in a high-harmonic generation medium using two counterpropagating pulses. The Bragg grating disperses the harmonics in angle and can diffract a large bandwidth with temporal resolution limited only by the source size.