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

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

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Tue, 19 Aug 2003 00:12:42 +0200
Message-ID: <3F414F5A.5070308@pinkjuice.com>
To: public-qt-comments@w3.org
CC: Ashok Malhotra <ashokma@microsoft.com>, Jeni Tennison <jeni@jenitennison.com>

Hi Ashok

 > Yes, but the spec says that if reluctant quantifiers are used, i.e.
 > those with ?, then the regex "matches the shortest possible substring
 > consistent with the match as a whole succeeding."

I see (there are a lot of specs to read ...).


I think the example in the spec can confuse.

Why use
  fn:tokenize("abba", ".?") returns ("a", "b", "b", "a")
and not (add)
  fn:tokenize("abba", "") returns ("a", "b", "b", "a")


What should
  fn:tokenize("abba", ".")
(Not sure if it's ("","","","",""))
Perhaps it would be a useful example.


You also might want to consider adding an example where the pattern 
matches something in the input and an empty sequence is returned, if 
there are such cases.


Received on Monday, 18 August 2003 18:14:24 UTC

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