On 29.May.2002 -- 01:17 PM, Konstantin Piroumian wrote:
> From: "Christian Haul" <[EMAIL PROTECTED]>
> >
> > 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
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]