Generation of solitons in a nonlinear periodic medium.