In v3, fn:tokenize would do this:
fn:tokenize("word", "") ==> ("w", "o", "r", "d")
...but in v4 that returns an error:
[1.0-ml] XDMP-MATCHZERO: (err:FORX0003) fn:tokenize("word", "") --
Pattern matches zero-length string
With the 2nd param interpreted as a reg-ex pattern, I'm not sure why it
ever worked, but it was handy.
Any comments on why this is the case?
How's this on speed/efficiency for replicating it? Not that I know how
fast the tokenize version was.
for $pos in 1 to fn:string-length("word") return fn:substring("word",
$pos, 1) ==> ("w", "o", "r", "d")
Thanks,
Shane
M. Shane Strawn
Software Engineer
Wolters Kluwer Health
Professional and Education Division
[email protected]
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general