cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
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"/>


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

Easy, no ?



Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -

View raw message