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: [Proposal] Sitemap parameters
Date Wed, 29 May 2002 13:23:04 GMT
On 29.May.2002 -- 01:17 PM, Konstantin Piroumian wrote:
> From: "Christian Haul" <haul@dvs1.informatik.tu-darmstadt.de>
> >
> > could this be relevant to your discussion (I'm sneaking in 'cause I
> > saw Carsten's cross post to cocoon-dev)?
> >
> > http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102249009904928&w=2
> 
> I've seen that discussion, but had problems with mail server and couldn't
> join to it.
> 
> My proposal is a little different. While input modules provide a way to
> _get_ variable values from different sources (sitemap, request, etc.), my

Konstantin, I didn't intend to promote the use of that modules. I
think the issue Nicola raised is more general than that: referencing
sitemap vars with URLs and supporting different means to obtain the
value.

With that (actually, even with the input modules) you could have a
component that takes all the vars you would like to set and refer to
them afterwards. For example take the StringConstantModule: configure
it to return a "@myskin" and refer to it whenever you need it.  Why
not extend it so that it can return different constants? That way you
will get global constants.

> Behavior can be the same as for the XSLT params: if a value is specified
> externally (from command line or request params) then it's used, otherwise
> the default value is used that is specified in declaration of the parameter:

Possible, I'd say.

	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