Hi Rashel, > I'm trying to generate cocoon forms dynamically. atm I create the cForm > model xml dynamically Do you mean the form definition?
> using jx generator; this is what i have: > > in my flowscript: > cocoon.sendPage("form_model-pipeline.xsp" , > {questions: questionRegistry.getAllQuestions()}); > > and in my pipeline: > <map:match pattern="*-pipeline.xsp"> > <map:generate type="jx" src="forms/{1}.xml"/> > <map:serialize type="xml"/> > </map:match> I propose calling it form_model-pipeline.jx rather than .xsp 'cause that's different. > the jx generator creates a cForm xml model in correct syntax and is > outputted as XML to the browser... You need two things: A definition and a template. The definition declares the available fields and its types. The template is used for the arrangement and display of these fields. > what im trying to do now is feed this newly generated xml model to the > pipeline so that a Form will be generated and viewed, however i'm not > really > sure how to do this, or which part of cocoon docos i sould be reading... Please have a look at http://cocoon.apache.org/2.1/userdocs/basics/index.html I think (I hope ;-) this helps understanding the concepts. And then feel free to ask again. > How do I dynamically generate input content to be used as a source in the > sitemap?? In short: You may use every cocoon protocol (context:, cocoon:, file:, http:, ...) as xml input and therefore any pipeline, even those creating content dynamically. > Any help would be appreciated... I hope, this helped :-) Florian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]