cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: [Vote] Cocoon Advanced Control Flow
Date Wed, 09 Jul 2003 17:16:05 GMT
Christopher Oliver wrote:

> Sylvain Wallez wrote:
>
>> Reinhard Pötz wrote:
>>
>> +1 on everything but [B] :
>>
>>>  [B] Functions provided by scripts can be called within the sitemap
>>>      using:
>>>           <map:call function="[yourFunction]">
>>>        <map:parameter name="x" value="y"/>[2]
>>>      </map:call>
>>>            There are no special restrictions where you can put
>>>      it within <map:pipeline .../> (e.g. put it within action elements)
>>>
>>
>> As pointed out recently by Jeremy, <map:parameters> inside a 
>> <map:call> are currently passed as positional arguments to the JS 
>> function, which can be very confusing since the sitemap syntax uses 
>> named parameters. Jeremy also proposed these parameters to be passed 
>> as a single Map-like object to the function.
>>
>> So I'm +1 for the syntax but I'd like the parameters to be passed by 
>> named.
>
>
> Uh, I already added this. Sorry, forgot to mention.


Cool ! Thanks a lot !

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



Mime
View raw message