Please don't answer on this one...it's only a joke, really :)

Carsten

> -----Original Message-----
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 11:53 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Proposal]: Advanced Value Substitution
> 
> 
> Ok, what do you guys think about this?
> 
> A configurable variable substitution component! I can configure
> in the cocoon.xconf if I want to use the old substitution algorithm
> or my suggestion (or a custom implementation).
> 
> Carsten
> 
> > -----Original Message-----
> > From: www-data [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
> > Sent: Tuesday, October 08, 2002 11:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [Proposal]: Advanced Value Substitution
> > 
> > 
> > > >here is a simple proposal for an easier value substitution algorithm
> > > >in the sitemap.
> > > >
> > > >Currently, if you nest actions and matchers you have to aware of
> > > >the paths to get your information:
> > > ><match pattern="**">
> > > >  <act type="anything">
> > > >      <read src="{directory}/{../1}"/>
> > > >  </act>
> > > ></match>
> > > >
> > > >This can get very complicated. When I first got contact with value
> > > >substitution more than two years ago, I thought I could write:
> > > ><read src="{directory}/{1}"/>
> > > >
> > > >The two components use different keys, so there is no conflict and
> > > >the values can be resolved.
> > > >This is in accordence to usual programming languages where a
> > > >variable is not only searched in the current scope but also
> > > >in the parent scope:
> > 
> > ...
> > 
> > > >What do you think?
> > > >
> > > 
> > > Sorry Carsten, this is a day where we don't agree :-/
> > 
> > Although I am also sometimes confused about substitution values like
> > {../../../../../../../1} just to get the result of the first match..
> > But I fear you might find yourself searching for clashes... don't know
> > if this will make things really easier...
> > 
> > BTW: Do we support absolute paths already? like {/1} being on the 
> > first level?
> > --
> > Torsten
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to