K, I thought "handleForm" was function in the binding file. But no its not there! Is it internal to cocoon? And do you mean I should create a flow script?
Linc -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, 19 December 2004 8:58 PM To: [EMAIL PROTECTED] Subject: RE: cform integration in a website Hi, What you do is not call "handleForm" but rather your own script that handles the form. This way you can build your own page in which you can include the contents of your formTemplate (the one that displays the form on screen). You can do that either directly (just extend your formTemplate with the necessary code) or, if you want to reuse the form in different pages, use either Cinclude or Xinclude. Have a look at the form samples for different ways of displaying your form and at the Cinclude/Xinclude samples for integrating different parts in your page. HTH. Bye, Helma > -----Original Message----- > From: Lincoln Mitchell [mailto:[EMAIL PROTECTED] > Sent: Sunday, 19 December 2004 05:56 > To: [EMAIL PROTECTED] > Subject: cform integration in a website > > > I have a cform that I can now run in isolation, however I > naturally wish to > have it appear inside a page on a website site and can't see > how. Below only > the form appears if the url is "Support Form.htm" whereas the > 2nd match > "*.htm" displays any other page with the websites User > interface around > them. > > ... > <map:match pattern="Support Form.htm"> > <map:call function="handleForm"> > <map:parameter name="function" value="form2xml"/> > <map:parameter name="form-definition" > value="forms/form_model.xml"/> > <map:parameter name="documentURI" value="forms/form_data.xml"/> > <map:parameter name="bindingURI" value="forms/form_bind_xml.xml"/> > </map:call> > </map:match> > ... > <map:match pattern="*.htm"> > <map:generate src="content/content.xml"/> > <map:transform src="stylesheets/ui.xslt"> > <map:parameter name="selectedHref" value="{1}"/> > </map:transform> > <map:serialize type="html"/> > </map:match> > ... > > How do I approach this; multiple transforms in the sitemap? > document()? > import? or include? Is it done in cocoon or just with xslt? > > Any pointers? > > > > TIA > > Linc > > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
