You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Boris Rousseau <br...@tssg.org> on 2004/02/09 18:22:02 UTC

XPath and operator issues

Hi all,

I have the following XPath which work fine:
//A[(contains(userID, "john") and contains(creationDate,"06-02-2004")) or contains(creationDate, "07-02-2004") ...]

However as soon as I put another conditions in the 'and' section the query, as follows:
//A[(contains(userID, "john") and contains(service, "service1") and contains(creationDate,"06-02-2004")) or contains(creationDate, "07-02-2004") ...]
it seems to disregard the service specified (I get results with service2 back).

Maybe this is only a curly braces issue but I have tried different things and it still does not work

Regards,
Boris