Characterizing coherences in chemical dynamics with attosecond time-resolved x-ray absorption spectroscopy.