I don't know if its parents residence or childs in which case you are at boarding school more weeks of the year than home. I'm sure there's some way to work the system!
I want to move back to Edinburgh so you can come and live with me - look out Kosar, Trouble's coming to your town!
I think it is about where you pay your taxes to....so presumably where the parents live. I'm pretty fed up about it too, being Scottish and my children born there. Although if you look closely, the fees are a bit cheaper, but you have to do 4 years for an Honours degree, so its swings and roundabouts, I guess.
Also the students seem to be a bit younger. My son looked at a Uni in Scotland, but felt a bit out of place due to his advanced years (18 and 1/2) compared with 16 - 17 year olds. Grandma would have loved him to go though, she might have seen a bit more of him then, and he could have stayed with her, freeing up some of his student loans, hmmm, maybe we've missed a trick or two