Re: transformers
314.23
Boxes need to be rigidly supported to the surface or structure, (A) through (H) are the rules to be followed.
Between the listing requirements and 314, I do not see how one can support the box for devices by mounting to the transformer enclosure.
Pierre