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 ?xml version=1.0? html head titleRegistration successful/title /head body pRegistration was successful for ${username} on ${date}!/p source:write xmlns:source=http://apache.org/cocoon/source/1.0; source:sourcecontext://myformtest/${username}.xml/source:source source:fragment data date -mm-dd=${date}/ /data /source:fragment /source:write /body /html ///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]