In accordance with vows taken at Espelunga, García Ximéniz, in response to the victory, founded a hermitage dedicated to John the Baptist at the site.
The kingdom that was baptised at Aínsa they named Sobrarbe, because it was founded "on a tree" (sobre arbre) when the cross appeared there.
[1] The image of the red cross on a tree against field of gold was incorporated into the Aragonese coat-of-arms in the top left quarter.
It was given a full, historicising treatment in the five-volume Renaissance history of Aragon, De Aragoniae Regibus et eorum rebus gestis libri V (1509), by Lucio Marineo Sículo, who describes the reigns of its kings in turn.
The Fueros de Sobrarbe were the most influential component of the legend and a school of legal thought, the "foralists", arose in defence of Aragon's supposedly ancient customs.
[1] The Aragonese jurist Juan Ximénez Cerdán in his Letra intimada describes how the office of Justicia of Aragon was said to have arisen: Certain peoples conquered from the Moors a certain part of the kingdom in the mountains of Sobrarbe, and since these were communities with neither governor nor alderman, and given that there were many disputes and debates among them, it was determined that, to avoid such problems and so that they might live in peace, they should elect a king to reign over them ... but that there should be a Judge between them and the king, who would hold the title of Justicia of Aragon.