[Home] [By Thread] [By Date] [Recent Entries]
Bartolomeo Nicolotti wrote:
could you please confirm that Looking at http://www.w3.org/TR/xpath-functions/#func-tokenize it clearly says "If $input is the empty sequence, or if $input is the zero-length string, the result is the empty sequence." so yes, count(tokenize('', ';')) is 0. And it also says "If a separator occurs at the start of the $input string, the result sequence will start with a zero-length string. Zero-length strings will also occur in the result sequence if a separator occurs at the end of the $input string, or if two adjacent substrings match the supplied $pattern." so you get 2 for count(tokenize(';', ';')) -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



