A woman was taken to hospital after she was stabbed in downtown Sydney in what appeared to be an unprovoked attack by a man who has been taken into custody, police said.