Thanks for your help guys. Turns out it was the battery. I've since replaced it, and the XJ is running fine.
Funny thing is, though, yesterday I fully charged the old battery, and this morning put a volt meter on it, and got 13.8 volts!
I'm trying to work out why it wouldn't start the XJ with...