cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: Writing form data to an XML file
Date Mon, 08 Jan 2007 09:45:35 GMT

> 
> 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>
>      <title>Registration successful</title>
>    </head>
>    <body>
>      <p>Registration was successful for ${username} on ${date}!</p>
>      <source:write xmlns:source="http://apache.org/cocoon/source/1.0">
>        
> <source:source>context://myformtest/${username}.xml</source:source>
>        <source:fragment>
> 	<data>
> 	  <date yyyy-mm-dd="${date}"/>
> 	</data>
>        </source:fragment>
>      </source:write>
>    </body>
> </html>
> 
> ///Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message