This is how i imagine that Terra became Xehanort...
When he was fighting with MX (The final fight) he used the power of darkness and turned himself into an Unbirth... Thus making him into a nothing like he was before birth....
However, i think, when an unborn has a strong will (Or heart...