cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Pipeline conditional model
Date Tue, 30 May 2000 21:34:55 GMT
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

instead.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message