When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
had the same problem with my uk spec xr3i (mk4?)
used a can of carb cleaner into the throttle body , cleaned the air idling valve with same - problem solved!
Air leak, check all of above with addition to the hose from inlet - servo, usually leaks at the servo end, spray spray WD on the intake side of things to see if the revs rise and this will give an indication and atleast eliminate that side of things
turned out to be the fuel pump........drove fine but as he car warmed the fuel pressure dropped causing my to stall at every stop.
when started the revs would idle for 30 secs then die
if it is due to the sump gasket , try using the one piece from a later r3i
(does the erst's have this)
use a thin smear of hi temp silcone - seals much better