if this is the case, can you suggest a way to define an aggregate document
which comprises of the same component document included twice but seeded
with different parameters?

and what are the options for passing parameters from the aggregating
matcher, or do you need to use some kind of include instead?

tks,
mooch.
-----Original Message-----
From: giacomo [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2001 09:26
To: [EMAIL PROTECTED]
Subject: Re: [C2] aggregation parameter




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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
>
>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



The information in this Internet E-mail is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is unauthorized. Any views or opinions presented are solely
those of the author and do not necessarily represent those of TWI, TWIi,
IMG, PCC, NOW or any of their affiliates. If you are not the intended
recipient please contact [EMAIL PROTECTED] and delete this email
immediately.

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to