W3C home > Mailing lists > Public > www-xpath-comments@w3.org > April to June 2006

RE: xpath doesn't support substring !

From: Michael Kay <mhk@mhk.me.uk>
Date: Wed, 24 May 2006 09:40:57 +0100
To: <choconlangthang@yahoo.com>, <www-xpath-comments@w3.org>
Message-ID: <00a601c67f0d$c8771e70$1a09010a@turtle>
XPath has functions substring(), substring-before(), and starts-with(),
which between them should meet your requirements. I don't know how you
missed these.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: www-xpath-comments-request@w3.org
[mailto:www-xpath-comments-request@w3.org] On Behalf Of Le Mai Tung
Sent: 23 May 2006 04:27
To: www-xpath-comments@w3.org
Subject: xpath doesn't support substring !


Hello there, 
I got one comment 
I want to select the node whose value contains a substring.
For eg: 

<Data>
<ID>1</ID> 
<Name>Abramson, Norman</Name> 
</Data>

I want to select the <Name> node containing "Abramson" , so I cannot use the
= operator, but I found no "substring" command. I must query all nodes,
check them all, kind of lengthy job !
Hope to get this feature someday, thanks for reading.


life is not only 17 inches 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Received on Wednesday, 24 May 2006 08:41:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:55 GMT