"Strawn, M. Shane" wrote:
Hi,
> (err:FORX0003) fn:tokenize("word", "") -- Pattern matches
> zero-length string
That's the correct behaviour required by the spec. I think the
idiomatic trick here is to use:
define function my:characters($s as xs:string) as xs:string*
{
for $c in string-to-codepoints($s)
return codepoints-to-string($c)
};
(not tested) Regards,
--
Florent Georges
http://www.fgeorges.org/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general