*Spoilers start here*
She is not actually a Nobody, but a doll created によって Xemnas from Sora's leaked memories. Her face was based off of Sora's strongest memory, Kairi, but as Naminé pieced together Sora's memories, she began to physically look like Sora.
The plan was for Xion to eventually become a complete Sora replica, due to the fact that Xemnas was unsure if he could rely on the actual Sora to gather him enough hearts for Kingdom Hearts. Eventually she would have had to absorb Roxas to become whole, and if that were to happen, the original Sora would never awaken. Eventually she is absorbed によって Roxas instead, thus giving him the ability to duel-wield.
*Spoilers end here*
In my opinion a completely original storyline.
What do あなた think