Yves,

Even better, why not set-up Saxon8 as your XSLT transformer 
[http://wiki.apache.org/cocoon/Saxon?highlight=%28Saxon8%29] and make use of 
XSLT 2's <xsl:result-document href=""> element that allows you to write to the 
filesystem on the server. The transform you invoke in the pipeline uses the 
document() function to obtain your source guest-book.xml file and use the 
stylesheet to append/insert (as required) the new entry.



This is much nicer than Cocoon's source writer and is potential more portable 
in the long term.



Regards

Philip Fennell 


-----Original Message-----
From: "Boisvert, Éric" [mailto:[EMAIL PROTECTED] 
Sent: 02 March 2006 15:14
To: '[email protected]'
Subject: RE: Write XML from a post in a page


Source Writing Transformer should do the trick 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/transformation/Source
WritingTransformer.html

Cheers

Eric


-----Message d'origine-----
De : Yves Vindevogel [mailto:[EMAIL PROTECTED]
Envoyé : 2 mars, 2006 09:52
À : [email protected]
Objet : Write XML from a post in a page


Hi,

I would like to know whether it is possible to write an XML file based upon the 
post a user does in his webbrowser towards a page.
For instance, this could be used in a "guestbook" without having to use a 
database.

For instance
<guestbook>
    <entry><from>abc</from><......></entry>
</guestbook>

When the user is in the site and posts a new entry in the guestbook, the above 
file should be changed to have 2 entries.
Depicting stuff like guestbooks would become pretty easy.

Regards,
Yves


---------------------------------------------------------------------
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]

Reply via email to