Wavelet decomposition and its related nonlinear approximation problem are investigated on the basis of shift invariant spaces of functions. In particular, a Bernstein type inequality associated with wavelet decomposition is established in such a general setting. Several examples of piecewise polynomial spaces are given to illustrate the general theory.