3d photoabsorption in gaseous and solid xenon