Mouad KASMI SAHLI <mailto:[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to re-use the exit of a pipeline as argument (exemple
> src) of a component.
>
> So, how can I use results from one component as parameters for
> another ?
>
> I want to GET BACK 2 parameters (the first one a link towards a file
> xml and the second a link towards the xsl) of a file xml and to reuse
> them as source and to transformer
I'm not entire sure what you're trying to do, but I think you're
looking for the file input module:
<component-instance name="foo"
class="org.apache.cocoon.components.modules.input.XMLFileModule"
logger="core.modules.foo">
<cacheable>true</cacheable>
<reloadable>true</reloadable>
<file src="cocoon://foo.xml"/>
</component-instance>
Then, assuming the result of cocoon://foo.xml looks like
<bar><baz>blah</baz></bar>,
call it from the sitemap like: {foo:/bar/baz} to get the string "blah" to pass
as a parameter, use as part of an @src or whatever you want to do with it.
--
Kind regards,
Met vriendelijke groet,
Martijn Vos
Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel +31 (0)20 5224466
-------------------------------------------------------------
[EMAIL PROTECTED] / www.hippo.nl
--------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]