Jeremy Quinn wrote: > > Dear All, > > I reckon I have the FileWritingTransformer and some samples ready for > others to test. > > Would anyone have any objection to me adding them to the scratchpad?
Absolutely not! I would use it instanstly! > I have chosen an Apache Namespace for it: > > xmlns:xfwt="http://apache.org/cocoon/xfwt/1.0" > > Is there any objection to this? Nop > What does it do? > Put this in a document that gets transformed by the FileWritingTransformer: > > <xfwt:write src="docs/result1.xml"> > <page> > <title>FileWritingTransformer Test Result 1</title> > <content> > <para>Congratulations!</para> > </content> > </page> > </xfwt:write> > > It creates the file with the <page/> as root element. Question 1#: how hard would it be do to <xfwt:write src="xmldb://localhost/result.xml"> <page> ... </page> </xfwt> Question #2: do you check if the <xfwt:write> element includes *one* and only *one* nested element? If not, we could end up with problems later on. Anyway, sounds great. -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. <[EMAIL PROTECTED]> Friedrich Nietzsche -------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]