Attosecond Nonlinear Optics in Plasmas for Coherent X-ray Generation