Writing form data to an XML file
I'm passing the results of the form demo into some code in registration_success.jx to write the form data to an XML file. Having got it working, I now need to find out how to get rid of the text which appears in the browser after the success message: success entire source overwritten write overwritten file:/usr/local/apache-tomcat-5.5.12/webapps/ROOT/myformtest/abc.xml xml Obviously it's a trace from somewhere...but where? My registration_success.jx says: Registration successful Registration was successful for ${username} on ${date}! http://apache.org/cocoon/source/1.0";> context://myformtest/${username}.xml ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Writing form data to an XML file
> > I'm passing the results of the form demo into some code in > registration_success.jx > to write the form data to an XML file. Having got it working, > I now need > to find > out how to get rid of the text which appears in the browser after the > success message: > > success entire source overwritten write overwritten > file:/usr/local/apache-tomcat-5.5.12/webapps/ROOT/myformtest/a > bc.xml xml > > Obviously it's a trace from somewhere...but where? My > registration_success.jx says: You just need an xsl transformation after the writing of the source. You are now just showing the result of the source writer Ard > > > > > Registration successful > > > Registration was successful for ${username} on ${date}! > http://apache.org/cocoon/source/1.0";> > > context://myformtest/${username}.xml > > > > > > > > > > ///Peter > > - > 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]
Re: Writing form data to an XML file
Ard Schrijvers wrote: Obviously it's a trace from somewhere...but where? My registration_success.jx says: You just need an xsl transformation after the writing of the source. > You are now just showing the result of the source writer What markup format is returned by the writing of the source (ie what element types do I have to provide for in my transformation)? ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Writing form data to an XML file
Just change your serializer to xml (or add a cocoon view) and see the xml output in your browser. Then, you know what kind of xsl you need to write (watch out for the namespaces probably) Ard > > Ard Schrijvers wrote: > >> Obviously it's a trace from somewhere...but where? My > >> registration_success.jx says: > > > > You just need an xsl transformation after the writing of > the source. > > You are now just showing the result of the source writer > > What markup format is returned by the writing of the source (ie what > element types do I have to provide for in my transformation)? > > ///Peter > > > > - > 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]
Re: Writing form data to an XML file
Ard Schrijvers wrote: Just change your serializer to xml (or add a cocoon view) Duh. I knew this of course. Thanks...it's a Monday morning...:-( ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]