W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

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

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Tue, 23 Sep 2003 10:27:00 +0200
Message-ID: <3F7003D4.9040204@pinkjuice.com>
To: public-qt-comments@w3.org
Cc: Ashok Malhotra <ashokma@microsoft.com>, Jeni Tennison <jeni@jenitennison.com>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:49 UTC