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: accessing sitemap parameters in a flow script
Date Fri, 15 Aug 2003 15:51:51 GMT
Steven Noels wrote:

> Hi all,
>
> I guess the title says about all. ;-)
>
> I want to dynamically load a Woody form definition, its name being 
> based on the URI invoking the flow function. What's the easiest way to 
> do this? I saw some very similar questions pass by, but I fail to find 
> out whether this is already implemented, and if so, whether one can 
> access the parameter by name, instead of depending on the sequence of 
> attributes. 


<map:call function="foo">
  <map:parameter name="bar" value="baz"/>
</map:call>

and

function foo() {
  var x = cocoon.parameters["baz"];
}

Easy, no ?

;-)

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