I seem to remember Calmini/Nissan teaming up and putting a 3.5 VQ from the Pathfinder into an 03' Xterra. An engine swap is a definite possibility in an X, just maybe not with the 4.0 due to the dimensions.