Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 83778 invoked by uid 500); 30 May 2002 09:05:25 -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 83767 invoked from network); 30 May 2002 09:05:24 -0000 Message-ID: <3CF5EBA6.3070405@anyware-tech.com> Date: Thu, 30 May 2002 11:06:46 +0200 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: fr, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: [VOTE] Syntax for module-based sitemap variables Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi team, We all agree to add module-based sitemap variables, but we didn't came to a consensus about it's syntax. So let's vote to make a choice. To illustrate each possible syntax, I will consider the substitution of the "foo" request parameter using the "request" InputModule. Here are the various syntaxes that people have proposed so far : 1 : {request:foo} 2 : {/request:foo} 3 : {module:request:foo} 4 : {/module:request:foo} 5 : {module://request/foo} My +1 goes to (1) : I don't see the need to explicitly specify "module:", just as we don't prefix URLs with "source:" or "url:" to specify if they should be handled by a SourceFactory or URLFactory. And if one day we add another mechanism to InputModules, the choice will be the job of a variable resolver, just at it is today's job of the SourceResolver for URLs. In order to have a more formal definition of sitemap variables, I suggest that we consider unprefixed variables to belong to a builtin "sitemap" module, which can be named explicitely, for example if the variable name contains a colon, e.g. "{sitemap:foo:bar}". Please place your votes ! Sylvain -- Sylvain Wallez Anyware Technologies Apache Cocoon http://www.anyware-tech.com mailto:sylvain@apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org