I think I just realised that you probably need the transformer to allow the ‘neutral’ to be connected to ground without upsetting the mains it’s connected to. But you could probably save money by getting a 1:1 40VA isolation transformer and a DC supply than an all in one transformer.