Re: [xslt2 func/op] tokenizing "abba" to ("a","b","b","a")

Ashok Malhotra wrote:
> The WGs discussed this issue in the meeting on 9/16/2003.  We agreed
> that the description of fn:tokenize was ambiguous and decided to clarify
> it

Great, thanks.

> by making it an error for the pattern to match the zero-length
> string.

I'm not sure if I understand you correctly. In order to split a string 
to it's characters the pattern that specifies the separator must match 
the zero-length string (those that are inside the word), no?

My suggestion was to add

  fn:tokenize("abba", "") returns ("a", "b", "b", "a")

... or would that return ("", "a", "b", "b", "a", "") ?

Tobi

Received on Tuesday, 23 September 2003 04:25:31 UTC