You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Irv Salisbury <ir...@gmail.com> on 2005/03/11 13:18:16 UTC

Re: How to pass an attaribute value from a resulting transformed xml as parameter to

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 <jh...@domek.be> wrote:
> 
> 
> suryanarayana.murthy@tcs.com 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: 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