Upgrade to barebones system using compaq hard drive

I wouldn't put high hopes on it (a repair install will probably be required), particularly if you have a Compaq Recovery CD that will only work on a Compaq system. You should provide info about the Compaq and the barebones system as well as the XP CD that you have. If both systems use similar chipsets, it might work, but nobody can guarantee it.