ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved