OK, I've been known to be wrong before; the "E" (XS500E) designation does indicate a 1978 model, so you might well have one, but my creaky old memory tells me that the bodywork changed in 1978...
One thing I can tell you with certainty is that back in those days, Yamaha had a limited number of assembly lines, so they would build a certain number of bikes of a particular model, then change the line to something else. IOW, once they built a certain number of SR500s (just as an example), they would have to change the line to another model, and they couldn't build more SRs for the rest of the year. Honda had the luxury of being able to increase production of any model that began selling well; if sales of the CR250 took off in the European market, Honda could fire up a new line and build more CR250s to meet the demand. Yamaha, Kawasaki, and Suzuki were out of luck; once they'd built the quota for any particular model, the line had to be changed to begin the next model buildup, there was no way to make MORE of anything, no matter how popular a particular model might become in that year...
I realize that the XS500 was never popular in the US, but it developed a cult following in Europe; not nearly as popular as the SR500, which sold strongly there for MANY years. but a dedicated core of enthusiasts who supported it...
Without a doubt, yours is the best example I've seen in a LONG time, so please keep the changes to a minimum... you're off to a good start; the Superbike bars are much better than the stockers, so that is one less thing for you to deal with.
Thanks for posting the extra photo; I'm going to save all of them to keep me hunting for my own XS...
-- kd