05 Nissan pathfinder. 4.0.

Intermittent transmission slipping. No evidence of water/fluid cross contamination. Changed Trans filter. Worked good for one day then intermittent again. Problem appeared suddenly.

1997 pathfinder 4×4 auto

Will a gearbox from a 2003 xtrail T30 fit and do I have to make any adjustments thankyou