Joseph I, 1678-1711