i not sure if you tried this or had any luck cause your post post was since the 5th. but here goes.
with a keyboard pluged in boot the pc, hit delete to get into the bios. go to your boot options and make sure it says first boot from cd then hard drive. you will change that back later to boot from hard drive later on. then save and reboot. make sure your win xp cd is in the drive and it should work.
also make sure your power source has enough juice to keep ur pc up and going. cause if its just a battery that u had laying around......it may not be up to par to get the pc working to its full potential.