|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Testing for presence of alphabetical characters
On 2/6/06, Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> wrote: > Ian, > > Your alpha string doesn't contain the substring '1a' -- can you say > why you expect to get true? maybe we can help you test what you > actually want to test. > > Ah -- testing for presence of alphabetical characters -- in XPath 1.0, > > not(string-length($cont) = string-length(translate($cont,$alpha,'')) or contains(translate($cont, $alpha, 'x'), 'x') I've heard that string-length() can get expensive because of multi-byte characters, although I would've thought translate() sufferered from the same problem...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






