We present a numerical approximation method for linear diffusion-reaction
problems with possibly discontinuous Dirichlet boundary conditions. The
solution of such problems can be represented as a linear combination of
explicitly known singular functions as well as of an H2-regular part. The
latter part is expressed in terms of an elliptic problem with regularized
Dirichlet boundary conditions, and can be approximated by means of a Nitsche
finite element approach. The discrete solution of the original problem is then
defined by adding the singular part of the exact solution to the Nitsche
approximation. In this way, the discrete solution can be shown to converge of
second order with respect to the mesh size