Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 35788 invoked by uid 500); 3 Dec 2001 10:03:53 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 35537 invoked from network); 3 Dec 2001 10:03:51 -0000 Date: Mon, 3 Dec 2001 11:03:47 +0100 From: Christian Haul To: cocoon-dev@xml.apache.org Subject: [VOTE] directly setting variables in sitemap Message-ID: <20011203110347.C28035@bremen.dvs1.informatik.tu-darmstadt.de> Reply-To: haul@informatik.tu-darmstadt.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Organization: Databases and Distributed Systems Group, Darmstadt University of Technology X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Team, shall we have a vote on this? There's no language element that allows setting of sitemap parameters er, variables. They are usually the result of sitemap components execution. More in particular, from those components that are used to determine the actual pipeline from the given fragments (matchers, actions; selectors return only true / false). When using to hold common parts of pipelines, it is often desirable that they depend on some values determined further up the pipeline. Often, an action or matcher already exists, that has the functionality required, but additional parameters need to be set for the processing in a resource. is used to do runtime configuration of components. is no component but a control statement and thus doesn't take runtime configuration. Thus the only solution today is, to modify an existing component to set additional parameters, or to write a custom action that just sets some parameters. does have @target which is probably not as clean as possible. A better solution would be, to introduce some construct to set those variables without the need of an action, like that is translated by the following in sitemap.xsl (not tested!): Map map = new HashMap(); listOfMaps.add(map); this.dumpParameters(); map.put("", substitute(listOfMaps, "")); Or Map map = new HashMap(); map.put("", substitute(listOfMaps, "")); listOfMaps.add(map); this.dumpParameters(); Please voice your opinion on introducing a construct as described above. Obviously, I'm +1 Chris. -- C h r i s t i a n H a u l haul@informatik.tu-darmstadt.de fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org