Donald Ball wrote:
>
> On Wed, 18 Apr 2001, Berin Loritsch wrote:
>
> > > generaly nesting of actions is (as I understand it) something like
> > > if-then-else clause, "if-then" -> go deeper, "else" go to next element at
the
> > > same level in the tree, am I wrong ??
> >
> > You've pretty much got the concept.
>
> but it's not if/else - because the else branch is hit regardless, right?
> that is to say
>
> <map:match pattern="something">
> <map:act type="something">
> if branch
> </map:act>
> else branch>
> </map:match>
>
> if the something action return non-null, the if branch and the else branch
> are hit, otherwise just the else branch is hit. right? to do a real
> if/else branch, you have to use a selector, yes?
If you redirect, or completely specify a pipeline before reaching the next
element, then Cocoon will execute that. Otherwise, the other execution will
happen regardless.
For real selection, then use a selector.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
|