xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Hsiao <chs...@mrxsolutions.com>
Subject Re: xpath equivalent of 'where sql_column_value like '%pattern%'
Date Sat, 09 Aug 2003 16:04:33 GMT
If user_name is an element, you can do /Employ[username='saddam']

if user_name is an attribute, you can do /Employ/[@username='saddam']


On Saturday, August 9, 2003, at 09:36  AM, sandy pittendrigh wrote:

> If I want to pull an xpath where an attribute value had some
> particular value I could say, for instance:
>
> /Employees[@Name='user_name'][text()='saddam']
>
> but in SQL I be more general and  say:
>
> select user_name from Employees where user_name like '%dda%'
>
> Is this sort of thing possible with xpath in Xindice?
> IE are there strstr-like  functions for Xindice's xpath, for attribute 
> and element values?
> If so I haven't been able to find them.
>
>
> -- 
> /* Sandy Pittendrigh  >--oO0>
> * sandy@cns.montana.edu
> * http://cns.montana.edu/~sandy */
>
>
>
Charles Hsiao

MRX Solutions Corp.
Smart Practice, Smart Solutions

http://www.mrxsolutions.com



Mime
View raw message