The 97 231 will not bolt to a 2WD tranny, no case will, without major modification.
A 97 231 has a 23spline input, and will not bolt to an 89 4WD tranny as it would have a 21spline output.
If you have a 97 Trans and transfer case, and use both, they will bolt into an 89 provided they are the same trans (aw4>aw4, or ax15>ax15)
If you have an early 89 it could be possible it has the BA10, you might have to swap a few more parts, but it can be done.
The rear drive shaft will be different, and will need to be reworked/replaced. With a SYE and DC shaft it might be close with a SWB, but a LWB you will need more length.
Your Long arm kit and front components will swap over, but you will need MJ lift leaf springs unless you don't mind a little rake from a SOA. SOA will get you more in the 5-5.5 range
As stated MJ spring perches are wider due to outboard springs, they are also longer and do not interchange with XJ. XJ Add-a-leafs will only net ~1/2 of the lift it will give on an XJ due to the differences in the factory arch of the leaves (3" AAL= 1.5" lift on an MJ).
Do yourself a favor before this happens to you
http://www.naxja.org/forum/showthread.php?t=1031928