Ok there are two ratios for the Xj and there are 3 diff variants for it as well.
The ratios are 3.55:1 and 3.73:1, almost all petrols were fitted with the 3.55:1, some of the late model classics (around 2000) were fitted with the 3.73:1 ratio, AFAIK all the pre-updates were fitted with 3.55:1 d35's, the diesels were fitted with 3.73:1 d35's.
There were some that were fitted with 3.55:1 C8.25's around 97.
The last diff type is the d44 but to my knowledge none were factory fitted here.
Of course that was factory fitted options, as they are around 20yrs old now anything is possible....
But to answer your question any d35 (assuming correct ratio) is a straight swap incl abs etc, if 8.25 then the tailshaft and u-bolts are required as well (again assuming correct ratio).
The only odd one is the d35 from a diesel, they use a different sized uni....