There's no problem in replacing the transformer, so long as you can find it.....usually they are within a foot or so of the lamp itself. Often, if the lamp is pressed out of its housing, the transformer is tucked up in a space somewhere close, and is connected to the mains supply with a simple junction box.
John
October 2009