cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fennell, Philip" <philip.fenn...@hp.com>
Subject RE: Write XML from a post in a page
Date Fri, 03 Mar 2006 08:12:28 GMT
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:eboisver@nrcan.gc.ca] 
Sent: 02 March 2006 15:14
To: 'users@cocoon.apache.org'
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:yves.vindevogel@implements.be]
Envoyé : 2 mars, 2006 09:52
À : users@cocoon.apache.org
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: 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