The contactors will need to be brought out from the wall to the point that the front of the contactors and the front of the transformer are within 6" of each other.
I think you are going to have a "clear access" issue in getting to those contactors. Essentially if someone needs to work on them, they will be standing on or over the transformer. I'm on my phone so I don't have access to my NEC, maybe someone else can cite the section and paragraph number for this issue.
I agree with Jraef, as a maintenance electrician I would be very uncomfortable leaning against a metal transformer, troubleshooting a lighting fault at the contactors. Its unfortunate that the design engineer or architect did not take electrical equipment into account when they laid out the building.