Actually it is more complicated, as there are several equilibria involved. Aqueous chlorine reacts with water to produce HCl and HClO, the latter decomposes to HCl and O2, but some of the gaseous chlorine escapes the solution as well. HCl and HClO are present only in aqueous form, chlorine and oxygen other can be either dissolved (aq) or gaseous (g).