cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carmona Perez, David" <DPerez...@fcc.es>
Subject RE: XSP: cinclude and map:parameters problem
Date Wed, 21 Apr 2004 15:11:27 GMT

Another solution:

Create the XSP code dynamically through a cocoon sub-pipeline in this way:

<map:match pattern='a.xsp'>
	<map:generate src='a.xsp'>
	<map:transform type='cinclude'/>
</map:match>
<map:match pattern='a'>
	<map:generate src='cocoon:/a.xsp'/>
	....
	<map:serialize/>
</map:match>

The only drawback is that the XSP could get compiled every time.

-----Mensaje original-----
De: news [mailto:news@sea.gmane.org]En nombre de Andreas Hartmann
Enviado el: miƩrcoles, 21 de abril de 2004 16:20
Para: users@cocoon.apache.org
Asunto: Re: XSP: cinclude and map:parameters problem



olivier demah wrote:

> Andreas Hartmann a e'crit :
>
>> olivier demah wrote:
>>
>> [...]
>>
>>> So i thought ; i had to do something to pass parameters from xsp to
>>> xsp because i "call" news.xsp with cinclude.
>>
>>
>>
>> This does not work. Your compiled XSP is executed _before_ the
>> CInclude transformation, so "including another XSP" is not possible
>> this way.
>
>
> at least its clear :)

You might consider a logicsheet or a helper class for code
reuse in XSPs.

-- Andreas


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


*************************************************************
Este correo ha sido procesado por el Antivirus del Grupo FCC.
*************************************************************

*************************************************************
Este correo ha sido procesado por el antivirus del Grupo FCC.
*************************************************************

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


Mime
View raw message