the 10/5 only bolts behind an inline 6, so either it's a 6, or it's not a 10/5. :thumbsup:
If it is a 10/5, the yes you can use it. there are some differences though. the shifter tower is likely different and you'll want to swap over yours (I know for sure this is the case with the AX-15s, but haven't seen a wrangler 10/5 to confirm). and you'll need the t-case shifter handle and linkages from an MJ/XJ. I'm assuming the 10/5 bellhousing in the wrangler will have the provisions for the MJ's CPS.
as for the axles, you should have 3.07s under the truck now. I'd take the opportunity to swap both axles out for something with a better ratio. I'd go for at least 3.55s from a 4.0/auto XJ.