You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Brian Burridge <ma...@burridge.net> on 2004/01/13 20:19:17 UTC

From form to XML, any suggestions?

I want to create xml from forms and after reading through cocoon, I came
up with a couple of ways (I'm new to cocoon). I'd like to hear if there
are other ways, or if some of you have experience doing this.

1) I could use the RequestGenerator to generate an xml with all the
values submitted from the form, and then use a custom xslt to change it
to the format of xml I want to use (for alter storage in xindice).

2) I could use XSP to create xml using the request parameters in the xml
(and then store it).


Are there any other ways to create xml from a form submission that can
then be written to flat file or a db?

Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: From form to XML, any suggestions?

Posted by Joerg Heinicke <jo...@gmx.de>.
What about the new ModuleSource 
(http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=107358149204778&w=2)?

With something like <map:generate type="file" 
src="module:request-param:xml-field"/> you have the XML in the pipe and 
you don't need hand written Java or XSP code.

Joerg

On 13.01.2004 20:19, Brian Burridge wrote:

> I want to create xml from forms and after reading through cocoon, I came
> up with a couple of ways (I'm new to cocoon). I'd like to hear if there
> are other ways, or if some of you have experience doing this.
> 
> 1) I could use the RequestGenerator to generate an xml with all the
> values submitted from the form, and then use a custom xslt to change it
> to the format of xml I want to use (for alter storage in xindice).
> 
> 2) I could use XSP to create xml using the request parameters in the xml
> (and then store it).
> 
> 
> Are there any other ways to create xml from a form submission that can
> then be written to flat file or a db?
> 
> Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: From form to XML, any suggestions?

Posted by Alex Romayev <ro...@yahoo.com>.
Brian,

This is correct, however if you want more advanced
form functionality (form generation, validation,
binding to java objects or xml, etc), you might want
to take a look at cocoon forms, also known as woody
block.

Regards,
-Alex

--- Brian Burridge <ma...@burridge.net> wrote:
> I want to create xml from forms and after reading
> through cocoon, I came
> up with a couple of ways (I'm new to cocoon). I'd
> like to hear if there
> are other ways, or if some of you have experience
> doing this.
> 
> 1) I could use the RequestGenerator to generate an
> xml with all the
> values submitted from the form, and then use a
> custom xslt to change it
> to the format of xml I want to use (for alter
> storage in xindice).
> 
> 2) I could use XSP to create xml using the request
> parameters in the xml
> (and then store it).
> 
> 
> Are there any other ways to create xml from a form
> submission that can
> then be written to flat file or a db?
> 
> Brian
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 


=====
Alex Romayev
Software Architect
http://www.romayev.com
romayev@yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org