> > first create a form from a form definition===> binding it===> load data to it from a file ===>invoke a pipeline to show this form by a template as to my understanding, wd: is like "class" and wt: is like "object". here this file is to load data, so it is more like "object" isn't it??
and also, in this sample, it seems that in all those wb:XXXX markup is defined in the first step, which overwrote those markup defined in xmlns:wd="http://apache.org/cocoon/woody/definition/1.0" for example: in the following code, <wd:booleanfield id="samp-struct-booleanfield"><wd:label>Sample Struct BooleanField</wd:label></wd:booleanfield> ^^^^^^^^^^^^^^ is defined in form_model_gui_model : <wd:struct id="booleanfield"> except that it overwrite he old label "BooleanField" to a new one "Sample Struct BooleanField". am I right?????????????? ================== codes from form_model_gui_model:(form defnition file in step one)======================== <wd:struct id="booleanfield"> <wd:label>BooleanField</wd:label> <wd:widgets> <wd:new id="id-class"/> <wd:new id="label-class"/> </wd:widgets> </wd:struct> <wd:struct id="field"> <wd:label>Field</wd:label> <wd:widgets> <wd:new id="id-class"/> <wd:new id="label-class"/> <wd:new id="required-class"/> </wd:widgets> </wd:struct> ================code from form_model_gui_data (data file in step three)======================================= <wd:struct id="samp-struct"> <wd:label>Sample Struct</wd:label> <wd:widgets> <wd:booleanfield id="samp-struct-booleanfield"><wd:label>Sample Struct BooleanField</wd:label></wd:booleanfield> <wd:field id="samp-struct-field" required="true"><wd:label>Sample Struct Field</wd:label></wd:field> </wd:widgets> </wd:struct> ----- Original Message ----- From: "Marc Portier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 29, 2004 11:41 PM Subject: Re: Silly Question NO7: load data from a file of wd: namespace? > > > lechael wrote: > > > in cocoon's inbuilt example: > > http://localhost/samples/woody/form_model_gui.flow > > first create a form===> binding it===> load data to it from a file > > ===>invoke a pipeline to show this form by a template > > following is some code extracted from the data file, > > 1. it use namepace of wd: !! why??????? > > > > how do you mean, why? > why not? > > > > > <?xml version="1.0" encoding="UTF-8"?> > > <wd:form xmlns:wd="http://apache.org/cocoon/woody/definition/1.0" > > xmlns:i18n="http://apache.org/cocoon/i18n/2.1"> > > <wd:widgets> > > > > the process that is interpreting these definition files will only look > for elements in this namespace. > > (for completeness, wd is not the namespace, but the local profix) > > -marc= > -- > Marc Portier http://outerthought.org/ > Outerthought - Open Source, Java & XML Competence Support Center > Read my weblog at http://blogs.cocoondev.org/mpo/ > [EMAIL PROTECTED] [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]