cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: [VOTE] Remove FlowScript Function Parameters Support
Date Tue, 09 Nov 2004 14:00:24 GMT
Vadim Gritsenko wrote:

> Hi Guys,
>
> As discussed before, and several times already, it is time to phase 
> out "feature" of passing parameters from the sitemap into flowscript 
> as positioned function parameters:
>
>   function myflow (a, b, c) {
>       ...
>   }
>
> Because this syntax relies on order of <map:parameter/> elements in 
> the sitemap but not names of the parameters. This syntax is replaced 
> with non-ambigous:
>
>   function myflow () {
>       var a = cocoon.parameters.a;
>       ...
>   }
>
> Proposed phase out plan is:
>
>   1. Write ERROR into the log file in 2.1.6 when usage of deprecated
>      syntax is detected.
>   2. Throw exception in 2.1.7 when usage of deprecated syntax
>      is detected.
>   3. Completely remove support of deprecated syntax in 2.2.
>
>
> Please cast your votes.


+1.

For those who haven't followed the discussion, the problem is explained 
here: http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109960611029412&w=2

Sylvain

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


Mime
View raw message