On Fri, 21 Mar 2003, Sylvain Wallez wrote: > Stephan Michels wrote: > > >Hi, > > > >I would love to use a syntax like > > > > <conditions> > > <condition name="cond1" value="i<5"/> > > <condition name="cond2" class="org.domain.FileChanged"/> > > </conditions> > > > >with the ExcaliburCompoenentSelector. > > > > <role name="org.domain.ConditionSelector" > > shorthand="conditions" > > > > default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector"> > > <hint shorthand="condition" class="org.domain.ExpressionCondition"/> > > </role> > > > >But the ECS only allows 'component-instance' with a class attribute > >or a defined element name and using the class specified the > >the hint role. It is perhaps possible to change the implementation > >to use the class attribute in other elements than > >'component-instance'? > > > >I attached a patch file for the ECS. > > > > You should also look at Cocoon's ExtendedComponentSelector which allows > this kind of features
I know the cocoon selector, but I don't want to write an own selector. But perhaps I must :-/ Stephan. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
