xsl-list
[Top] [All Lists]

Re: breaking string into substrings or arrays

2005-04-19 13:15:50
On 4/20/05, Ali Choumane <ali(_dot_)choumane(_at_)imag(_dot_)fr> wrote:
Hi,

I have the same problem but with more delimeters, i can't know the kind of the
first delimeter.
 e.g  <Value>[Alpha, Beta; Gamma: Alpha .Beta]</Value>

In my project I am dealing with at least 10 delimeters ?

can I use tokenize() ? should I  download libraries to use this function?


With FXSL (for XSLT 1.0) one can use the str-split-to-words contained
in the file
strSplit-to-Words2.xsl.

It allows a string of delim,iters to be specified as a parameter.

First introduced in  2001  here:

            http://www.biglist.com/lists/xsl-list/archives/200111/msg00905.html


In FXSL for XSLT 2.0 I recently introduced a more performant function:
getWords(), which produced about 28000 words from the text of
Shakespeare's "Othello" in about 6 seconds.


Cheers,
Dimitre Novatchev

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>