Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 85474 invoked by uid 500); 11 Oct 2002 14:21:39 -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 85463 invoked from network); 11 Oct 2002 14:21:37 -0000 Message-ID: <3DA6DE91.2090906@apache.org> Date: Fri, 11 Oct 2002 16:22:09 +0200 From: Stefano Mazzocchi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: [Announcement] sitemap variables References: <1034215741.811.45.camel@defiant> <3DA4E4E8.9050301@gmx.de> <200210101056.46427.tcurdt@dff.st> <3DA568F7.3090709@gmx.de> <1034263269.3da59ae52bf97@imp.dff.local> <3DA5B214.1020705@anyware-tech.com> <3DA5C6DF.1070400@kaon.com> <3DA5FEF9.8010205@apache.org> <3DA691DA.50702@anyware-tech.com> 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 Sylvain Wallez wrote: > This can often happen with matchers when e.g. an area of the application > is protected : > > > > > ... > > > Ok, good point. > So explicit naming as proposed by Ilya finally seems the best approach > to me, as it removes all possible ambiguities at the price of a little > added verbosity. Since this added verbosity only happens when this > feature is used, this actually does no harm. Agreed. > Let's see now how we can write that... [skipped my tries] > Puke, puke, puke ;-)) :-Prrr > You're trying to find an alternative to the ':' which is used to > separate the prefix from the attribute name, because you make the > assumption that what's before the ':' *is* an inputmodule name. > > But isn't it precisely this prefix (i.e. the namespace) that should be > used to distinguish between inputmodules and sitemap variables ? If yes > (and I think so), this means we have to find a naming convention for the > prefix, and not for the separator. > > You may puke (if you still can ;-), but what about considering > sitemap-defined namespaces as internal to the sitemap, and thus prefix > them with a "#", that we all know as being used for internal links in > web pages ? > > This would lead to (adapted from Ilya's proposal) : > > > > > > > > > > > > > > Explanation : > - {#mtch1:xxx} come from statement named "mtch1" > - {#act1:xxx} come from statement named "act1" > - {request:xxx} come from input-module "request" > - {xxx} works as usual and gets its value from the enclosing statement. > > I changed "param-prefix" proposed by Ilya to "name" since this is > actually what it is : a name given to a sitemap statement. > > Thoughts ? know what? I like it. It seems a pretty nice solution and the use of anchor-like syntax is simple and understandable. So you get my +1 on this. -- Stefano Mazzocchi -------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org