title: How to tokenize a string in XSL and iterate over the tokens using for-each?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3336424/does-xslt-have-split-function">Does xslt have split() function?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to tokenize a comma-separated variable in my XSL style sheet, then iterate over the tokens using for-each to print the value of each token, what's the best way to do this?</p>
  
  <pre><code>&lt;xsl:variable name="columns" select="'EMPID,NAME,DEPT"/&gt;
  
  &lt;xsl:for-each select=???/&gt;
     &lt;!-- print name of token --&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>