over Odo's sisters. In case of Philip's death without issue, the duchy was to pass to Odo's youngest but sole surviving sister, Joan, rather than to the descendants of his deceased older sisters. Odo IV had no further sons and was succeeded by his grandson, Philip I. Philip died childless in 1361, having outlived his grandfather's last sibling, Joan. The duchy would have gone to Charles II of Navarre, grandson of Odo's older sister Margaret, according to primogeniture, but was successfully claimed by John II of France, son of the younger sister Joan, according to proximity of blood. Since Charles was the grandson of a sister of Odo and John was the son of another, the latter was one degree closer to the dukes of Burgundy than Charles. During the reign of Charles XII of Sweden it was never resolved whether his heir should be his younger sister, Ulrika Eleonora, or his nephew, Charles Frederick (the son of his deceased elder sister, Hedwig Sophia). The sister was more closely related to the reigning king, but the nephew had precedence according to primogeniture. Upon Charles XII's death in 1718 it was Ulrika Eleonora who successfully claimed the crown. Unsuccessful applications In 1269, upon the death of Conrad III of Jerusalem, Maria of Antioch and Hugh III of Cyprus both claimed the crown. She was the daughter of Melisende, fifth daughter of Isabella I of Jerusalem, while he was the grandson of Alice, second daughter of Isabella I. Maria was the only living grandchild of Isabella I and closer in kinship to Conrad III (first cousin twice removed) and the other kings of Jerusalem, while Hugh had precedence by primogeniture but was more distantly related to Conrad III (second cousin) and Isabella I (great-grandchild). The High Court decided in favour of Hugh but Maria did not relinquish her claim. Alexander III of Scotland drafted a treaty in 1281 in which he set out the rules of succession among his descendants. The provisions appeared to favor primogeniture for male heirs but proximity of blood for female heirs; the son of a deceased older son would take precedence over a surviving younger son but a younger daughter over a deceased older daughter's children. Upon the death of his granddaughter and successor, Margaret, in 1290, the succession was unclear. Robert de Brus claimed the crown by proximity in degree of kinship to the kings of