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

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 ...).

1.

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")
?

2.

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

3.

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.

Tobi


-- 
http://www.pinkjuice.com/

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