xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eli Naeher <enae...@yifan.net>
Subject Re: xpath equivalent of 'where sql_column_value like '%pattern%'
Date Sat, 09 Aug 2003 20:19:07 GMT
On Sat, 09 Aug 2003 11:19:48 -0700
sandy pittendrigh <sandy@cns.montana.edu> 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
> 
> /Employee[@Name='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.

--Eli Naeher



Mime
View raw message