cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: [RT]: Dynamic variables in the Sitemap / Input Modules revisited
Date Thu, 09 Jan 2003 09:51:41 GMT
On Thu, Jan 09, 2003 at 09:28:02AM +0100, Carsten Ziegeler wrote:
...
> I think we have currently two approaches:
> a) Chaining is done by special objects, so you have something like
>    this (let's not discuss the "first"/"second" syntax):
> 
>   <map:objects>
>    <map:object name="request-param" ..../>
>    <map:object name="session-attr" ..../>
>    <map:object name="my_chain ....>
>      <first>request-param</first>
>      <second>session-attr</second>
>      ...
>    </map:object>
>   </map:objects>
>   And I can simply use {request-param:myname} and {my_chain:skin}
> 
> b) Chainers (?) are special components:
> 
>   <map:objects>
>    <map:object name="request-param" ..../>
>    <map:object name="session-attr" ..../>
>   </map:objects>
>   <map:object-chainers>
>    <map:object-chainer name="my_chain ....>
>      <first>request-param</first>
>      <second>session-attr</second>
>      ...
>    </map:object>  
>   </map:object-chainers>
> 
>   And I can simply use {request-param:myname} and {my_chain:skin}
> 
> Personally I would opt for a) because b) adds another component type
> to the sitemap that is not really needed and it might be confusing
> that {request-param:myname} is handled by an object component and
> {my_chain:skin} by an object-chainer.

+1 for a)

Btw, Forrest is now using InputModules extensively, both in the sitemap,
and in XML links, like <link href="site:index">, where 'site' identifies
an InputModule and 'index' is the key.

http://forrestbot.cocoondev.org/sites/xml-forrest/linking.html#implementation

Implementing this, I found the current InputModule architecture
(specifically, chaining) quite sufficient.


--Jeff

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


Mime
View raw message