I think it may depend on which country you're in. I think in many European countries (such as my own one, Sweden) it would be illegal to fire someone for wearing female clothes. I'm not saying there wouldn't be other difficulties but I don't think losing your job would be one of them.