The x-type was based on the Wagon version of the MK II Mondeo. Longer wheelbase, smoother ride. The AWD system was a Jag thing and I'm dubious about it's reliability - especially from a junked car. Additionally, the system is electronically controlled, so just bolting up the parts and modding your chassis to accept them is only the beginning if you start from the Jag parts.
I've done some thinking about this AWD mod and determined the most ideal approach would be to grab parts from a 2002 Escape AWD system. It was mechanically controlled and would require only the needed modding for the rear diff, etc. at the back end. MAAAYYYYBE some modding to fit the transfer case under there, but that doesn't appear to be a problem from initial recon. Even then, the rear end modding might be reduced by getting hold of the Focus RS-8 rear end configuration and adapting for it.
Sup'm to think about.