coil on its way out?
an xj I used to run had this problem, would start and run fine till it was hot, then a hard start and would not run good till it seemed to clear itself out and burn off extra fuel.
coil was getting heat soaked. and was not making the contact it needed to, so it was a weak spark/no spark. new coil was instant fix. Not sure this is the case for you, but might be worth considering.