What about not using Cforms but instead forms using external handlers and then using sourcewritingtransformer to take the information to generate xml file. Would this work?
Thanks in advance!!
Dezbah Duchicela
[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED] 06/05/2006 04:27 PM
|
|
On 6/5/06, Dezbah Duchicela <[EMAIL PROTECTED]> wrote:
> I want to use CForms and flow in Lenya to use the data from the forms to
> create custom XML files in relation to what data was inputted in the forms.
> Could this be done with CForms and if so how?
Flow adds programming to XMAPs. The code is _javascript_, but has
access to Java classes. An XMAP pipeline passes control to the JS.
The JS can use other XMAP pipelines, and do anything that can be done
with JS or Java, which should include almost everything. Flow gives
the ability to send a form to a visitor, and continue processing after
submittal; this is called "continuance", and allows the program to
maintain state.
CForms gives the ability for standard control of forms. It has two
configuration files. Form configuration defines the fieldname, type,
and label for each field, and basic validation. Template
configuration defines the method and action of the form, the order of
the fields, the Submit button, and header and footer HTML. When used
with Flow, Flow can dynamically control the values of the fields.
You might also research the SourceWritingTransformer
(type="write-source" in Lenya). It allows any XML to be saved to
files. It is possible in Lenya to create custom XML and save it using
just XMAP and XSLTs. I have an 11LOC XSP Generator that creates XML
from POST data to make this easy. (In Lenya1.3, the
CreateRevisionTransformer will replace the SourceWritingTransformer to
make this even easier.)
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]