On 2/6/06, Wendell Piez <wapiez(_at_)mulberrytech(_dot_)com> 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...
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--