If you die in space, your body won't decompose naturally, because no oxygen is available. If you were close to a heat source, your body would get mummified; if you weren't, it would freeze. When the body in a space suit was sealed it would decompose, but only for as long as the oxygen remained.