Slice onions. Saute in saucepan with margarine. While those are cooking, slice apples. When onions are soft, put apples on top of onions.
Mix sugar and spices together and put mixture on top of apples. Cover and lower heat. Let simmer about 10 minutes.
Remove cover. Let simmer another 5-10 minutes, until apples are nice and soft.
Even though there is no added liquid, this will make sufficient liquid.
To lower the calorie count, replace margarine with 1/4 cup apple juice.