On Wed, 2006-03-01 at 16:06 +0000, Paul Fremantle wrote:
> Saminda
>
> The only problem is that the individual rules don't signal whether
> they matched. The true/false is not an indication.
>
> So I was imagining this:
>
> <switch type="regex">
> <pattern pattern=" http://foo/.*">
> <mediator1>
> </pattern>
> <pattern pattern="http://bar/.*">
> <mediator2>
> </pattern>
> </switch>
Please add a default:
<switch ..>
<pattern ../>*
<default>
<mediatorx/>
</default>
</switch>
(Optional, of course.)
To me the idea of combining two pattern languages (regex and xpath) in
one thing is bad. Why can't switch/@type be switch/@pattern and be of
xpath type?
Sanjiva.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]