2009/2/25 david_geary <david_ge...@lagan.com>: > > Hi, > > I'm using an xpath filter in the xml configuration eg > > <filter> > <xpath>//cs:case/@queue="13"</xpath> > <to uri=..../> > </filter> > > What's the easiest way to combine filters eg I want to accept it if its on > queue 13 OR 14 (or if on queue 13 AND some other attribute is a particular > value?) > > I know I can set up separate filters and chain them to get 'AND' logic or > achieve 'OR' logic by putting the results onto the same seda queue say but > is there an easier general way to do this with the <filter> or <xpath> xml > syntax?
XPath supports AND and OR too? So you could just use those inside the XPath expression? http://www.w3.org/TR/xpath#booleans -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/