Further: Water must have ingressed the machine and the board the transformer is on, resulting in the primary winding being broken just before the connection pin on the former. I set about carefully dismantling the transformer. Well, it was a bit of a disaster. I broke the core, and I could not unwind the primary. So, I cut right through the primary which created lots of small bits of wire. I was measuring the wire bits to get a total wire length (so I could cut some wire the same length and rewind). but for a week I did some other work and when I got back to this task, I found some of the wires missing from the bench. They probably got lost when my woolly hat landed on them at some point.
What I did manage to do was record the primary turns, there were 34, wound on the outside, 34 SWG.
I probably blew the TOP209P, so bought a new one. I did go to Power Integration's site to see if there was anything there that I could use. I downloaded some application, but I'm not sure if it will help or not.
My reasoning has been that if I can get a similar transformer core set and former, then knowing the wire lengths I could just wind on the wire and I'll be done. But, as I say, I don't think I can get to know the primary wire length. Well, I might be out by say 20% if I estimate the wire that's gone missing. I have some TopSwitch app note. I'm uncertain whether it will help or not.
As has been mentioned, maybe I can hack the board a bit and put in a replacement circuit. The item that I'm effectively repairing is a Bosch washing machine.