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


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: 

<Name>Abramson, Norman</Name> 

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 
Received on Wednesday, 24 May 2006 08:41:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:02:16 UTC