cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: [RT] InputModules for sitemap variables
Date Mon, 27 May 2002 08:03:37 GMT
On 26.May.2002 -- 01:50 PM, Sylvain Wallez wrote:
> Nicola Ken Barozzi wrote:
> >From: "Sylvain Wallez" <sylvain.wallez@anyware-tech.com>

> >>So the following snippet (copied from RequestParamAction javadoc) :
> >> <map:act type="request">
> >>   <map:parameter name="parameters" value="true"/>
> >>   <map:generate src="users/menu-{id}.xml">
> >> </map:act>
> >>
> >>could be written more simply :
> >> <map:generate src="users/menu-{request-param:id}.xml"/>
> >>
> >
> >It doesn't bring new functionality, creates duplicate ways of doing the
> >*same* thing, and breaks compatibility with old sitemap.
> >All this in favor of a more compact syntax.
> >
> 
> Wow, this is harsh !
> 
> My opinion is that it brings more *usability* in the sitemap, since 
> there is currently no *simple* way to substitute anything else than 
> sitemap variables. This led to what I consider to be a degenerate use of 
> matchers and actions to populate these variables.

I'd like to second you on that.

> Concerning compatibility, the colon separator is just a proposal, and we 
> have to see if anybody already uses it. If some people do, there are 
> other possible syntaxes, such as "attaching" module substitution to the 
> root of the variable tree, i.e. "menu-{/request-param:id}.xml". Since 
> '/' is currently used to travel up the hierarchy, I'm pretty sure nobody 
> uses it as the first character of variable names.

I like this idea of using the root space for this. OTOH after a bit
consideration I'd be happy without "/" as well.

	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


Mime
View raw message