Anna, wait, you could use a small XSLT to parse the input XML document, enclose the document in a <source:write> element and pass it along to the SourceWritingTransformer... any problem with this scenario ?
Best regards, --------------------------------------------- Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html --------------------------------------------- > -----Original Message----- > From: Anna Afonchenko [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 18, 2002 1:25 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Writing output of pipeline to a file > > > As I understand the SourceWritingTransformer (I may be wrong, I am new to > all this) > the directives for write to a file (source:write) should be in the xml, not > in xsl. > I don't write the xml, I get it, so I need to perform the writing in xsl. > If you can explain to me how I can use SourceWritingTransformer to write to > a file from the stylesheet, I would be very grateful. > For now I will just use java extension function in my xsl stylesheet to > perform writing to file. > > Thanks for answering > > Anna > > ----- Original Message ----- > From: "Luca Morandini" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, December 18, 2002 1:45 PM > Subject: RE: Writing output of pipeline to a file > > > Anna, > > why don't you use SourceWritingTransformer to write the document, and then > transform its output (the status message) in an HTML that > automatically loads the written XML document ? > > Yes, you'd bounce the browser (not a particularly nice thing to do) and > should write a separate pipeline to handle the rendering of > the written XML document... but I presume it would be easier than other > methods. > > You may even check, with the ResourceExists action, whether the XML document > has already been written to disk... hence deciding > dinamycally which pipeline to use: the one writing the XML document, or the > one rendering it. > > Best regards, > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>