MEXICO CITY (AP) _ Outgoing President Vicente Fox suffered a brief fainting spell on Sunday during an outing with legislators at his ranch, the president's office said.

Fox's office said in a statement the leader ``suffered a slight fainting spell due to overexposure to the sun.'' It was unclear if he actually lost consciousness or simply felt faint.

Local media reported that Fox either walked or was helped into a nearby building to get out of the sun. After a medical examination, Fox rejoined the group at the ranch, located in the north-central state of Guanajuato.

Fox's last day in office is Nov. 30. He will be replaced by Felipe Calderon, who won a July election over leftist Andres Manuel Lopez Obrador. Lopez Obrador has contested Calderon's victory and threatened to block his inauguration on Dec. 1.