>>Also is there any XPath that allows you to carry out phrase searching,

>>or word searches?

>You have the contains() and starts-with() functions.

Is there a way to make contains() case insensitive?

Paul

-----Original Message-----
From: Richard Light [mailto:[EMAIL PROTECTED] 
Sent: 05 April 2003 13:03
To: xindice-users@xml.apache.org
Subject: Re: xpath for NOT Operator


In message <[EMAIL PROTECTED]>, Gul Akbar 
<[EMAIL PROTECTED]> writes
>
>Hi,
>Can you perform a query with the boolean NOT operator? can anyuone give

>me examples. I have the query:
> //mets [ /mets/agent/name='Gul Akbar' NOT /mets/role='Administrator' ]

Check out the XPath standard: it isn't a secret! :-

http://www.w3.org/TR/xpath

I think your example query would have more luck if re-phrased thus:

//mets[agent/name='Gul Akbar' and not(role='Administrator')]

>Also is there any XPath that allows you to carry out phrase searching, 
>or word searches?

You have the contains() and starts-with() functions.

Richard Light
-- 
Richard Light
SGML/XML and Museum Information Consultancy [EMAIL PROTECTED]


Reply via email to