Re: [xsl] Split Strings with multiple spaces

Subject: Re: [xsl] Split Strings with multiple spaces
From: Alice Ju-Hsuan Wei <ajwei@xxxxxxxxxxx>
Date: Wed, 14 Nov 2007 12:06:18 -0500
Dear Wendell:

Yes, I am now using XSLT 2.0 with Saxon 8B as my processor. Angela has provided a great example in the previous post.

Thanks for mentioning.

Alice
Alice,

Are you using XSLT 1.0 or 2.0?

In 2.0, we have the function tokenize(), which makes this much
easier. (It is also commonly available as a extension in 1.0: check
your processor.)

In 1.0 you need to use a recursive template, not unlike what Mike
just wrote about in the thread "[xsl] get value from link from last
slash". You work through the string one item at a time by handling
the first item and then calling the same template again with the
remaining ones.

Cheers,
Wendell

Current Thread