Generation and propagation of attosecond x-ray pulses in gaseous media