On 2003.08.10 06:19, Eli Naeher wrote:
On Sat, 09 Aug 2003 11:19:48 -0700
sandy pittendrigh <[EMAIL PROTECTED]> wrote:

> Ok, but I don't want a pattern search on the Element name,
> nor an Attribute name.
>
> ....I'm trying to do a pattern search on the Element
> and/or Attribute value
>
> /Employee[username like '%dda%']
>
> or
>
> /[EMAIL PROTECTED]'user_name'][textlike()='Sad']

/Emplyee[contains(.,'whatever')]

You ought to be able to do:

[contains(/Employee,'Whatever')]
but that doesn't seem to work with Xindice.  The first works fine.

contains(/Employee, 'Whatever') will work with the lastest CVS version (using the embeded or managed drivers, the xml-rpc dirver has yet to be fixed). It will return a result for each document in the collection containing the boolean value.


This is different from the example

/Emplyee[contains(text(), 'Whatever') or contains(@name, 'Whatever')]

which will return one employee node for every match.

-k.

Reply via email to