Return-Path: Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 29645 invoked by uid 500); 15 Aug 2003 15:51:49 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 29572 invoked from network); 15 Aug 2003 15:51:49 -0000 Received: from smtp5.wanadoo.fr (HELO mwinf0404.wanadoo.fr) (193.252.22.27) by daedalus.apache.org with SMTP; 15 Aug 2003 15:51:49 -0000 Received: from anyware-tech.com (AToulouse-206-1-12-224.w81-51.abo.wanadoo.fr [81.51.192.224]) by mwinf0404.wanadoo.fr (SMTP Server) with ESMTP id 47AAC38000E4 for ; Fri, 15 Aug 2003 17:51:51 +0200 (CEST) Message-ID: <3F3D0197.2040307@anyware-tech.com> Date: Fri, 15 Aug 2003 17:51:51 +0200 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: fr, en, en-us MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: accessing sitemap parameters in a flow script References: <3F3CFFE0.8020406@outerthought.org> In-Reply-To: <3F3CFFE0.8020406@outerthought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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. 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