Dude. As previously stated -
Mechanically, IT IS ALL THE SAME.
It will line up fine with the transmission. You don't need the "head from the 94" or anything else like that. The 1994 head is the same part number as the 1997 head. You are good to go as long as you have all your original electrical parts (wiring harness), PAIR, and EGR (assuming you are using it) from the 94.
The 95 and newer are OBDII engines, so they have different sensors, and a Mass Air Flow Meter, which the 94 does not have. The 94 draws its ignition signal from the Cam, whereas the 95 and newer draw it from a crank position sensor. Also, not an issue, since you aren't going to use the wiring harness from the 97. You don't even have to worry about splicing wires or plugging holes.
JUST BE SUPER CAREFUL WITH YOUR AIRFLOW METER.
They are gone, don't exist, and are super expensive to buy used if you can find one.
Seriously, it's cake.
I have a 94, with a 97-long block in it. I know of what I speak, though not even on the same planet as almost everyone who replied above.
One note: I didn't point out that the upper oil pans are different in my haste to be sarcastic. You can run it just like it is. Just zip-tie the pigtail for the sensor out of the way. BUT, you could also swap your 94 upper oil pan onto it while the engine is on the stand since you're going to replace the upper arch seal anyway right? The newer oil pan is NLA, so you can probably find a buy for yours to recoup some of your cost.
@OGBeno may know if the 94 is also NLA, I do not.