This function provides direct access to the very powerful
Perl function split. It splits
STRING to a list of
fields. PATTERN is a regular expression
specifying strings delimiting individual fields of
STRING. If PATTERN
is empty, STRING is split to individual
characters. If the regular expression in
PATTERN is enclosed in brackets, then
strings matching PATTERN are also
included in the resulting list.
The function returns a node-set consisting of
newly created <xsh:string>
elements containing individual strings of the resulting
list as their only text child nodes.