On the n-dimensional Dirichlet problem for isometric maps