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]