I have also been very keen to get some improvements in Cocoon 2 in regards to HTML Form symmetry. I am now working on a prototype which I'll hopefully share with the group in a week or so.
In the meanwhile I'll add to your questions another one: With the current validation descriptor files, how would one handle forms with multiple items of the same type. Like a list of items and their prices. How do I write a rule to validate that the price of any item should be min="5" and max="100" ? -= Ivelin =- >-----Original Message----- >From: Sam Robertson [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, March 06, 2002 9:36 AM >To: [EMAIL PROTECTED] >Subject: Form submit to XML > > >I posted this message on cocoon-users and it seems to >have been ignored because of hundreds of other posts. >:-) > >I saw a lot of discussion last month on the dev list >regarding "forms" >(http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=99546756928845&w=2). > Can anyone (especially Vadim :) help with this? See >message below. > >--- > >I am working on an application that atleast involves >submitting some data in a text box and storing it in a >database. I am using the XMLDBTransformer from the >scratchpad to do this and storing in Xindice (thanks >to Vadim and Christian) Now I have another question. >Can anyone recommend what's the best way to get the >form submission converted to XML for storage? > >One way is to use the RequestGenerator on submission >to get all the request parameters. Then write an XSL >to convert it to the XML format that I desire (which >means taking out the request fields). Then I could >use the xmldb transformer to save it to xindice. > >Is it better to use actions for the form submission? >That way I could validate the data before storage. > >Any feedback will be very much appreciated. > >Best regards, >Sam > > >__________________________________________________ >Do You Yahoo!? >Try FREE Yahoo! Mail - the world's greatest free email! >http://mail.yahoo.com/ > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]