Not sure how a '97 D1 differs from a '94 D1 but my truck has an engine (and ancillaries) and ZFHP22 transmission from a '94 D1 in it (tansmission originally installed by the PO, but since rebuilt, and was once on the stock 3.9 before replaces with a rebuilt serp 3.9). I am using the D1 cowl as well. The wiring harness and transfer case mates up fine with no mods, but you'll need the center console setup from a '97 D90 or do some linkage fabbing to have a shifter come through the stock boot (like mine) which doesn't look bad. It does not however have anything in place to stop you starting it in gear which is pretty shoddy imho, but otherwise works fine. I am not happy with the kickdown cable adjustment on mine and I am not sure if this is a computer issue or just mechanical.
------ Follow up post added September 9th, 2010 01:35 PM ------
Wait isn't a '97 D1 gems/obdII? If yes, I don't know how hard that will be.