About the only tried and proven advice I can give you is, that a long time ago, I made up my mind, that I was going to check the basic mechanical functioning of my motor (87 XJ 4 ltr.) before I spent the money for some "expert" to go on a fishing expedition with a diagnostic tester (he doesn´t understand anyway) for $40-$50 an hour. And 90%+ of the problems were in basic areas.
Bad distributor cap, corroded connectors, plugged or fouled sensors, vacumn leaks, high voltage cables or just plain moisture, inside the ignition system somewhere.
That said, the early XJ´s had a series of coil failures, a recall type thing, that might require a look.
And Dingus at sometime or the other, posted the base values for the
crank position sensor, that should affect timing. In later models the pickup in the distributor (trigger) seemed prone to failure.
One problem, while simple drove me nuts, water under the mounting plate inside the distributor. Only misfired when the motor was warm and some of the water would evaporate and cause some serious misfire. The distributor cap, also seemed prone to corrosion, and would carbon track and fire the wrong cylinders at the wrong time, the higher the RPM the worse the problem.[addsig]