Structural stability for nonlinear elliptic problems of the $p(x)-$ and $p(u)$-laplacian kind