title: EXSL - How to use str:tokenize()?
body: <p>I'm just starting XSLT and I try to use the str:tokenize() template in XSLT 1.0.
  I checked on: <a href="http://www.exslt.org/str/functions/tokenize/index.html" rel="nofollow">http://www.exslt.org/str/functions/tokenize/index.html</a></p>
  
  <p>But I can't get the expected result.</p>
  
  <p>This is the code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="1.0"
                                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                                  xmlns:exsl="http://exslt.org/common"
                                  xmlns:str="http://exslt.org/strings"
                                  exclude-result-prefixes="str"&gt;
  &lt;xsl:output method="xml"/&gt;
  &lt;xsl:template match="/"&gt;
    &lt;xsl:variable name="var" select="John.Wayne"/&gt;
      &lt;root&gt;
         &lt;xsl:for-each select="str:tokenize($var,'.')"&gt;
              &lt;element&gt;
                  &lt;xsl:value-of select="."/&gt;
              &lt;/element&gt;
          &lt;/xsl:for-each&gt;
      &lt;/root&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>My expected output should be:</p>
  
  <pre><code>  &lt;root&gt;
       &lt;element&gt;John&lt;/element&gt;
       &lt;element&gt;Wayne&lt;/element&gt;
      &lt;/root&gt;
  </code></pre>
  
  <p>Any help appreciated. Thanks in advance!
  Oh, by the way, my output is:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;root/&gt;
  </code></pre>
  
  <p>(I'm using xsltproc)</p>