cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <>
Subject Re: [VOTE] Syntax for module-based sitemap variables
Date Thu, 30 May 2002 13:18:52 GMT
Sylvain Wallez wrote:
> 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.

Sorry if the question has been answered previously, but where is this
"InputModule" defined?

I'm worrying about possible namespacing issues with future cocoon

> Here are the various syntaxes that people have proposed so far :
> 1 : {request:foo}
> 2 : {/request:foo}

between these I prefer #1. #2 seems to imply that the trailing path has
an effect on the use.

> 3 : {module:request:foo}
> 4 : {/module:request:foo}
> 5 : {module://request/foo}

what is a 'module' in this sense?

between #3 and #4, the same consideration above apply. #5 is even worse:
it seems to imply an entirely new protocol and might conflict with
cocoon blocks in the future.

> 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}".

Much easier: force variable names *not* to contain a colon. It works for
XML elements and people using XML stuff are used to the notion of colon
as a namespaced prefixed declaration.

> Please place your votes !
> Sylvain
> --
> Sylvain Wallez
>   Anyware Technologies                  Apache Cocoon
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<>                             Friedrich Nietzsche

To unsubscribe, e-mail:
For additional commands, email:

View raw message