cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject RE: [C2] Passing parameters to aggregated content
Date Tue, 26 Jun 2001 13:09:07 GMT
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:sergio.carvalho@acm.org]
> Sent: Tuesday, 26 June 2001 15:04
> To: cocoon-dev@xml.apache.org
> 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: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=======================================================================
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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message