Generators for nonlinear canonical transformations