Variational principles and convergence of finite element approximations of a holonomic elastic-plastic problem