Nonequilibrium phases and phase transitions of the XY model