Both side are true ... in cocoon 2.0.4 the syntax is <source:write src="xml/resource-list.xml" xmlns:source="http://apache.org/cocoon/source/1.0" overwrite="true"> <xsl:copy-of select="/*"/> </source:write> It's not what is explained on cocoon 2.0 documentation but the exemples in scratchpad show this (see mount/editor/tests and particulary file make-page.xsl) this version of sourcewritting is limited to create (update do NOT work i experienced this for you).
In cocoon 2.1 the format is the one presented in the documentation of cocoon 2.1 and 2.0. On August 12, 12:48 pm Ferenc Kiraly <[EMAIL PROTECTED]> wrote: > Upayavira wrote: > > The source writing transformer in 2.0.x is different from that in > > 2.1. Use something like the following in 2.0.x: > > Looking at the source file SourceWritingTransformer.java I must strongly > disagree. > > > > > <source:write src="xml/resource-list.xml" > > xmlns:source="http://apache.org/cocoon/source/1.0" overwrite="true"> > > <xsl:copy-of select="/*"/> > > </source:write> > > > > Regards, Upayavira > > > > On 12 Aug 2003 at 12:22, Ferenc Kiraly wrote: > > > > > >> Hi! > >> > >> I'm trying to use the SourceWritingTransformer to generate a file, but > >> I consistently get the following error: > >> > >> java.lang.RuntimeException: Errors in XSLT transformation: > >> Fatal: org.apache.cocoon.ProcessingException: Cannot get 'xml' > >> serializer > >> > >> The error occures if I specify a serializer in the sitemap or not. > >> > >> Im using cocoon 2.0.5. here is the relevant snippet from my XSP: > >> > >> > >> <source:write> > >> <source:path>page</source:path> > >> <source:source>volatile/my.xml</source:source> > >> <source:fragment> > >> <content> > >> Stuff. > >> </content> > >> </source:fragment> > >> </source:write> > >> > >> > >> > >> feri. > >> > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] For > >> additional commands, e-mail: [EMAIL PROTECTED] > >> > > > > > > > > > -- > > feri. > > Ferenc Kiraly > tel: +386 1 472 8429 > gsm: +386 41 252503 > > > > --------------------------------------------------------------------- > 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]