Orientation dependent X-ray absorption in high Tc superconductors