baldwin iv stipulated in his will that if anything was to happen to baldwin v , that his most rightful heirs were to rule over jerusalem until the king of england , the king of france , and the holy roman emperor , could settle the matter of succession .