The scattering of x-rays as they traverse a medium; sometimes produced and examined as a technique for analyzing materials.