Hi Martin, yes forgot to mention through previous searches I understand it only affects the 2014 & 15 XF models, also apparently other makes of cars as well. many reports on the net with same problem, even garages getting caught out.
On this model year as with any car of course you can use a slave battery connected when just changing main battery, to keep system alive, but not if you need complete disconnection. I followed an youtube video on timing belt replacement, where you have to disconnect bat & remove starter to set locking pin. After completing the job, no central locking. Contacted the youtuber & he said he forgot to mention that in his video. To late when damage done. Cost me a lot of time & stress, doing searches & finally after getting the JLR SDD software & nearly a whole day of reprogramming fixed it. There should be at least a warning on or near the battery. Sorry for the drawn out reply as although it doesn`t apply to your year, may help others with this year 2014 & 15