TCX supports altitude fields in course points. The FIT format, astoundingly, doesn't. Time, position, distance and some metadata. It would be very hard for a third-party field to work out the altitude; probably easier if you were using an app which completely re-implemented courses, but why would you want to do that on a 5x? Should be more straightforward for the watch's internal implementation to do it - it's looking at coursepoints in the context of the whole course anyway and could extract the altitude from the closest trackpoint. It would be much easier if the file format allowed the elevation to be included.