For completeness, here is a question I had meant to send to the whole list and Alex's response.
- Justin ------ Forwarded Message From: Alessandro Vernet <[EMAIL PROTECTED]> Date: Mon, 14 Jul 2003 18:52:31 -0700 To: Justin Makeig <[EMAIL PROTECTED]> Subject: Re: Dynamic XForms model Hi Justin, If you want to dynamically build the XForms model, create a pipeline that generates this XForms model. This pipeline must have an output named "data". Say you pipeline is stored in xforms.xpl. Then modify your controller.xml to point to this pipeline (xforms="xforms.xpl"). In the pipeline, you can do anything you want. You can connect to a database, read other resources, etc. BTW, please send your question to the oxf-users mailing list in the future, so other users can benefit from your experience. Thank you. Alex Justin Makeig wrote: > Is it possible to dynamically generate the XForms input to a view? The > xforms attribute in the page element in the controller specifies a file. Is > it possible to use an XForms instance built on the fly? > > Our xforms.xml on the file system looks like this: > > <xforms:model xmlns:xforms="http://www.w3.org/2002/01/xforms"> > <xforms:instance> > > <NameAndPhone> > <Name/> > <Phone/> > </NameAndPhone> > > </xforms:instance> > </xforms:model> > > Currently we seem to be limited to the above instance document as it exists > on disk. We would like to dynamically wrap the instance to look something > like: > > <xforms:model xmlns:xforms="http://www.w3.org/2002/01/xforms"> > <xforms:instance> > <pipeEnvelope> > <pipeMetaData> > <selection/> > </pipeMetaData> > <pipeUserData> > <NameAndPhone> > <Name/> > <Phone/> > </NameAndPhone> > </pipeUserData> > </pipeEnvelope> > </xforms:instance> > </xforms:model> > > How do we communicate this augmented XForms instance to the XForms processor > and the request handler? > > Our controller looks something like the following: > > <page id="newTimeSheetScreen2ID" > path-info="/somepath" > xforms="/xforms.xml" > model="/somepipe.xpl" > view="/someview.xsl"> > > Any assistance would be much appreciated. > > - Justin > > ------ End of Forwarded Message _______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
