I'll give some general OPINIONS, since I'm not specifically experienced with the '99 XJ, but have done more than one engine conversion in my time.
First, I'd put the probability of fit at 95%, as long as you accept the need for minor engine compartment mods to accommodate the slight differences...