 According to canon law, Jadwiga's marriage sacrament could only be completed before her twelfth birthday if the competent prelate testified her precocious maturity.Demetrius, Archbishop of Esztergom, issued the necessary document.William went to Kraków in the first half of August, but his entry to Wawel Castle was barred.