xsl-list
[Top] [All Lists]

Re: [xsl] Split Strings with multiple spaces

2007-11-14 10:09:14
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



--~------------------------------------------------------------------
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>