try...

<map:match pattern="">
        <map:parameter name="siteSection" value="/frontPage" />
        <map:aggregate element="page">
                <map:part src="header/{siteSection}" element="layout-header"
/>
        </map:aggregate>
</map:match>

<map:match pattern="header/*">
        <map:transform src="stylesheets/header.xsl" >
                <map:parameter name="siteSection" value="{1}" />
        </map:transform>
        <map:serialize />
</map:match>

or some such combination.  I'd also recommend putting the matches which are
aggregated into a seperate internal-only pipeline.

J.

> -----Original Message-----
> From: Sergio Carvalho [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 26 June 2001 15:04
> To: [EMAIL PROTECTED]
> Subject: [C2] Passing parameters to aggregated content
> 
> 
> Hi,
> 
> I posted this on cocoon-users for some time now, to no avail. 
> Maybe I can get help here ;-) 
> 
> In C2, I need to pass parameters to aggregated content. e.g.:
>       <map:match pattern="">
>        <map:parameter name="siteSection" value="/frontPage" />
>        <map:aggregate element="page">
>          <map:part src="header" element="layout-header" />
>        ...
>       </map:match>
> 
> Where {siteSection} will be used by the header. e.g.
>       <map:match pattern="header">
>         ...
>         <map:transform src="stylesheets/header.xsl" >
>          <map:parameter name="siteSection" value="{siteSection}" />
>         </map:transform>
>         <map:serialize />
>       </map:match>
> 
> This all looks fine, except that {siteSection} comes out null 
> on the aggregated content. Am I doing something wrong? Should 
> I pass the parameter via an action?
> 
> Thanks for any help,
> 
> Sergio
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to