I need to convert the string ‘abcdef’ to its parts, ‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’. Stupidly I tried
tokenize(‘abcdef’, ”)
but of course that returns a FORX0003 error (The regular expression in tokenize() must not be one that matches a zero-length string).
I’m actually trying to convert the string finally to ‘a/b/c/d/e/f’ so any shortcuts that would get me directly to this state would also be useful.
(I’m using Saxon 9.3 for .NET platform)
Use this line:
Where
$inputpoints at your original string. The return of this line is your desired string.