You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by kamakshi <ka...@hcl.in> on 2006/11/21 06:48:22 UTC
Can wildcard characters like ? be used in Xpath
Hi,
I want to evaluate a xpath with wildcard character ?, is there any way for
doing this.
Eg:
I want to get all Acro that as the value AC?? meaning it can be AC11 or AC22
etc.... only four characters and starts with AC.
/SUb/APP/Acro[.="AC??"], Is this possible or else there is someother
function to perform this
Thank U.
--
View this message in context: http://www.nabble.com/Can-wildcard-characters-like---be-used-in-Xpath-tf2677060.html#a7466204
Sent from the Xalan - C - Users mailing list archive at Nabble.com.
Re: Can wildcard characters like ? be used in Xpath
Posted by da...@us.ibm.com.
Kamakshi writes:
>I want to get all Acro that as the value AC?? meaning it can be AC11 or
>AC22 etc.... only four characters and starts with AC.
>/SUb/APP/Acro[.="AC??"], Is this possible or else there is someother
>function to perform this
In XPath 2.0, there will be a matches function to do this exact thing.
In XPath 1.0, you could test for both string-length and starts-with.
.................David Marston