[rt] resource-exists selector

2003-03-18 Thread Jeff Turner
(note: [rt]'s are little [RT]s ;) In Forrest-land, we are using the ResourceExistsAction to handle the possibility of different input formats. Eg., if index.ehtml or index.ihtml is present, it will be used in preference to index.xml: map:match pattern=**.xml map:act type=resource-exists

Re: [rt] resource-exists selector

2003-03-18 Thread Vadim Gritsenko
Jeff Turner wrote: (note: [rt]'s are little [RT]s ;) ... So, can I check this in, deprecate ResourceExistsAction, and we all live happily ever after? Check in resource-exists selector: +1. Deprecate resource-exists action: +0. What about resource-exists matcher? ;-) PS: RT: 1st rule of

Re: [rt] resource-exists selector

2003-03-18 Thread Steven Noels
On 18/03/2003 15:12 Vadim Gritsenko wrote: PS: RT: 1st rule of sitemap component equivalency: Every action could be renamed to/rewritten as a matcher Hehe. 2nd rule: any selection of Matchers can be combined into a Selector :-D /Steven -- Steven Noels

Re: [rt] resource-exists selector

2003-03-18 Thread Vadim Gritsenko
Steven Noels wrote: On 18/03/2003 15:12 Vadim Gritsenko wrote: PS: RT: 1st rule of sitemap component equivalency: Every action could be renamed to/rewritten as a matcher Hehe. 2nd rule: any selection of Matchers can be combined into a Selector :-D Bzzzt!!! Funny but wrong :) Matchers have

Re: [rt] resource-exists selector

2003-03-18 Thread Sylvain Wallez
Vadim Gritsenko wrote: Jeff Turner wrote: (note: [rt]'s are little [RT]s ;) ... So, can I check this in, deprecate ResourceExistsAction, and we all live happily ever after? Check in resource-exists selector: +1. +1 also. Deprecate resource-exists action: +0. +0 also ;-) What about

Re: [rt] resource-exists selector

2003-03-18 Thread Steven Noels
On 18/03/2003 15:25 Vadim Gritsenko wrote: 2nd rule: any selection of Matchers can be combined into a Selector :-D Bzzzt!!! Funny but wrong :) Matchers have side effect by returning map of values. Aaargh - you're spoiling my joke :-) /Steven -- Steven Noels

Re: [rt] resource-exists selector

2003-03-18 Thread Sylvain Wallez
Jeff Turner wrote: Heh.. I think you're right. Matchers, Selectors and Actions are all switches that can do logic. Actions have an unfair advantage in that they get passed a SourceResolver. I actually wrote a ResourceExistsMatcher first, then decided a Selector was more traditional. In

Re: [rt] resource-exists selector

2003-03-18 Thread Sylvain Wallez
Vadim Gritsenko wrote: Steven Noels wrote: On 18/03/2003 15:12 Vadim Gritsenko wrote: PS: RT: 1st rule of sitemap component equivalency: Every action could be renamed to/rewritten as a matcher Hehe. 2nd rule: any selection of Matchers can be combined into a Selector :-D Bzzzt!!! Funny but

Re: [rt] resource-exists selector

2003-03-18 Thread Nicola Ken Barozzi
Sylvain Wallez wrote, On 18/03/2003 15.43: Vadim Gritsenko wrote: ... Matchers have side effect by returning map of values. What about some super-selector (or multi-match ?) that would be allowed to return sitemap values ? And make Matchers and Selectors able to use the a MathcerSelectors as a

Re: [rt] resource-exists selector

2003-03-18 Thread Sylvain Wallez
Nicola Ken Barozzi wrote: Sylvain Wallez wrote, On 18/03/2003 15.43: Vadim Gritsenko wrote: ... Matchers have side effect by returning map of values. What about some super-selector (or multi-match ?) that would be allowed to return sitemap values ? And make Matchers and Selectors able