|
next
|
 Subject: Help using the fn:tokenize function Author: Justin Smith Date: 14 Jun 2007 04:12 PM Originally Posted: 14 Jun 2007 03:39 PM
|
Hello everyone,
I am attempting to use the tokenize(string, delimiter) function and having some trouble. I would like to tokenize a string, assign it to a variable, and then loop through each element in the string. Unfortunately, I can't even seem to get the tokenize function to work properly.
For a test, I have tried a few different syntaxes such as <fn:tokenize select="('a;b;c', ';')" /> and
<xsl:variable name="stringTest">
<fn:tokenize select=("a;b;c", ";")' />
</xsl:variable>
<xsl:value-of select="$stringTest" />
but can't seem to get the output I desire. I either end up with the empty string as output, or a tag reading <fn:tokenize select='('a;b;c', ';' />.
Also, if anyone would be willing to tell me how to assign the tokenized string to a variable, or loop through the list of tokenized strings I would greatly appreciate the help.
Update:
I seem to have figured out the syntax, but msxsl keeps telling me that the function tokenize does not exist? Any suggestions?
Thank you for your time and consideration.
|
|
|