Influence of resonances on spectral formation of x-ray lines in Fe XVII.