title: how to make xsl tokenize work
body: <p>I have a huge xsl file but the section where i use "tokenize" to parse through a comma separated string is throwing an error. For simplicity purposes I have broke it down to just test the tokenize piece only and cannot seem to make any progress. I keep getting the following error:</p>
  
  <blockquote>
    <p>Expression expected. tokenize(-->[&lt;--text],',') </p>
  </blockquote>
  
  <p>I tried using some example xsl shared in other posts but never managed to get it to work. I am having a difficult time understanding why my xsl code below is not valid. It seems t be very straightforward but I think I am missing something simple. Any help to get me in the right direction would be much appreciated. </p>
  
  <p>XSL:</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:template match="/root"&gt;
  &lt;xsl:for-each select="tokenize([text],',')"/&gt;
  &lt;items&gt;
  &lt;item&gt;
  &lt;xsl:value-of select="."/&gt;
  &lt;/item&gt;
  &lt;/items&gt;
  &lt;/xsl:for-each&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;?xml-stylesheet type="text/xsl" href="simple.xsl"?&gt;
  &lt;root&gt;
  &lt;text&gt;Item1, Item2, Item3&lt;/text&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I am expecting an XML output as follows:</p>
  
  <pre><code>&lt;items&gt;
  &lt;item&gt;Item1&lt;/item&gt;
  &lt;item&gt;Item2&lt;/item&gt;
  &lt;item&gt;Item3&lt;/item&gt;
  &lt;/items&gt;
  </code></pre>
  
  <p>Thank you!</p>