In XSLT 2.0 use the tokenize() function or the xsl:analyze-string instruction.
If you're stuck with XSLT 1.0, take a look at the string-handling library at
www.exslt.org.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference