[exslt] str:tokenize() bug
by Docwhat+List Exslt other posts by this author
Nov 2 2006 9:15AM messages near this date
RE: [exslt] Proposal: has-name-match()
|
[exslt] QNAME error
& XSLT This is a bug in either the definition of str:tokenize() or the
implementations I have seen.
Given this call:
str:tokenize('a-b--d','-')
I get back a list of nodes containing a,b, and d. The empty 'c' node is
missing. The description implies that I should have gotten four nodes,
but all the implementations I played with drop the empty node.
The description seems to imply that the empty node should be there
but implementor seem to think otherwise. :-)
This makes using tokenize() rather difficult for parsing data. At the
least, adding a 'strict' flag as an option would be useful.
Ciao!
_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
|