One-dimensional nonlinear boundary value problems with variable exponent