cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [C2] aggregation parameter
Date Thu, 10 May 2001 08:26:22 GMT


On Tue, 8 May 2001, Torsten Curdt wrote:

> I'm trying to pass a parameter from
> from the aggregating matcher into
> the aggregated matcher.
> Is this possible?

No.

> I looked into the
> stylesheet.xsl and it looks like
> map:aggregate gets initialized as
> all other sitemap components.
> So is supposed to support parameters.
> (I guess)
> Unfortunately I don't know how
> to reach them. {../varirable}
> obviously doesn't work.

Yes because parameters and values returned from components like
matchers, selectors and actions are treated differently.

There has been a proposal to have a <map:param name="foo" value="bar"/>
or even <map:param name="bar" value="{1}"/> but it was never
implemented. This way of course can satisfy what you like to do. But
keep in mind that the resources you try to include in an map:aggregate
construct should handle it properly (becaue it may not be there in case
the included resource is also available outside of the aggregation.

Giacomo

>
>    <map:match pattern="index.xsp">
>      <map:generate type="serverpages" src="index.xsp">
>        <parameter name="test" value="{../media}"/>
>      </map:generate>
>      <map:serialize type="xml"/>
>    </map:match>
>
>    <map:match pattern="something.html">
>     <map:aggregate element="page" ns="">
>      <parameter name="media" value="html"/>
>      <map:part src="index.xsp" .../>
>      <map:part src=... />
>     </map:aggregate>
>    </map:match>
>
> Any ideas?
> --
> Torsten
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message