cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <Giacomo.P...@pwr.ch>
Subject Re: Pipeline conditional model
Date Wed, 31 May 2000 04:57:40 GMT
Stefano Mazzocchi wrote:
> 
> Donald Ball wrote:
> >
> > > To do this, one possible solution is to introduce boolean elements that
> > > operate on these matching components. For example,
> > >
> > >  <process uri="...">
> > >   <AND>
> > >    <matcher type="A"/>
> > >    <matcher type="B"/>
> > >    <OR>
> > >     <marcher type="C"/>
> > >    </OR>
> > >   </AND>
> > >   ...(pipeline)...
> > >  </process>
> > >
> > > which is the logical equivalent of (using Java syntax)
> > >
> > >   ((A && B) || C)
> > >
> > > and reminds of inverse polish notation.
> >
> > (hopefully this hasn't been addressed already - i'm still paging through
> > my thousands of messages - y'all are some chatty people). I'm having
> > trouble reconciling the XML representation with the algebraic one. I would
> > write it like this:
> >
> > <OR>
> >  <AND>
> >   <match type="A"/>
> >   <match type="B"/>
> >  </AND>
> >  <match type="C"/>
> > </OR>
> 
> I don't like either models so I proposed
> 
> <if>
> <else-if>
> <else

+1

Giacomo

> 
> instead.

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

Mime
View raw message