The diesel engines have no "ignition". While there is a incandescent plug, it is used to heat the air that enters in the cylinders. The diesel fuel is injected in small droplets and burns in contact with the air (both because of the temperature in the cylinders, result of the high compression, and because of the high O2 partial pressure). The nitrogen oxides are a product of the very high temperatures in the diesel engine (normal gasoline engines, with compression ratios at some 10:1 have no such problem. However, very high compression engines also have this problem).
Calin
Calin