X-ray excited photoluminescence near the giant resonance in solid-solution Gd(1-x)Tb(x)OCl nanocrystals and their retention upon solvothermal topotactic transformation to Gd(1-x)Tb(x)F3.