I realize it is not the best solution, but the XModuleSource coupled with the CIncludeTransformer could extract contents and put them into a request attribute for further processing.
Irv On Thu, 10 Mar 2005 14:42:21 +0100, Jorg Heymans <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] wrote: > > Hi, > > In the sitemap, in a pipeline, after xsl transfomration, I am gettign an > > xml file. After that I am calling <map:call resource> to zip the contents > > using zipArchiveSerialzer. Now I am gettign the document title as an > > attribute to the root element in my xml. > > Following is my xml which is dynamically created using XSL transformation: > > <?xml version="1.0" encoding="UTF-8"?> > > <zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0" > > title="sometitle.zip"> > > <zip:entry name="xyz.ppt" src="soemURL"/> > > <zip:entry name="abc.pdf" src="someURL"/> > > </zip:archive> > > > > My problem is: > > Now how can I pass the title attibute to <map:call > > resource="someresoource">? > > Why do you want to pass it as an attribute? Explain a bit more, there > might be another way to achieve what you want. There is no easy way to > extract xml contents and pass it somehow as a parameter through the > pipeline. It is counter-intuitive as well, as your xml contents flows > through the whole pipeline anyway, so why passing it once more? > > Jorg > > > --------------------------------------------------------------------- > 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]
