Com and xpndr both talk to ground based stations, you will have a lot of alum between the antenna and the ground while in the air.
I did bury the ELT antenna in the cover, but then, it should not ever activate in flight, only in the event of a crash, so unless the plane flips upside down, should be OK. Works well when I did a test.