title: XSLT value() and position() give incorrect indices
body: <p>Can someone please explain me why I get the following output applying the follwoing xsl-file to the xml-file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;source&gt;    
      &lt;number&gt;1&lt;/number&gt; 
      &lt;number&gt;2&lt;/number&gt; 
      &lt;number&gt;3&lt;/number&gt; 
      &lt;number&gt;4&lt;/number&gt; 
      &lt;number&gt;5&lt;/number&gt; 
      &lt;number&gt;6&lt;/number&gt; 
      &lt;number&gt;7&lt;/number&gt; 
      &lt;number&gt;8&lt;/number&gt; 
  &lt;/source&gt;
  </code></pre>
  
  <p>====================================</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'&gt;
  &lt;xsl:template match="number"&gt;
     &lt;p&gt;
     &lt;xsl:value-of select="position()"/&gt;
     &lt;xsl:text&gt; of &lt;/xsl:text&gt;
     &lt;xsl:value-of select="last()"/&gt;
     &lt;/p&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>======================================</p>
  
  <pre><code>&lt;p&gt;2 of 17&lt;/p&gt; 
      &lt;p&gt;4 of 17&lt;/p&gt; 
      &lt;p&gt;6 of 17&lt;/p&gt; 
      &lt;p&gt;8 of 17&lt;/p&gt; 
      &lt;p&gt;10 of 17&lt;/p&gt; 
      &lt;p&gt;12 of 17&lt;/p&gt; 
      &lt;p&gt;14 of 17&lt;/p&gt; 
      &lt;p&gt;16 of 17&lt;/p&gt; 
  </code></pre>
  
  <p>I don't quite get why the output is not 1 of 8, 2 of 8 and so on.</p>