Local density theory of X-ray and photoemission from YBa2Cu3O7−δ: The high Tc superconductor