title: counter iteration in XSLT
body: <p>I would like to modify some existing code in XSLT to be able to iterate and display the counter.</p>
  
  <p>Here is the code, where "Rank" has to be the counter, I cannot implement this elsewhere because the sorting is done here!</p>
  
  <p>I don't know if my question is clear, but here is the bit of code:</p>
  
  <pre><code>&lt;xsl:for-each select="Player"&gt;
        &lt;xsl:sort select="Points" order="descending" data-type="number"/&gt;
        &lt;xsl:sort select="G" order="descending" data-type="number"/&gt;
        &lt;xsl:sort select="A" order="descending" data-type="number"/&gt;
        &lt;xsl:sort select="GP" order="ascending" data-type="number"/&gt;
        &lt;tr bgcolor="#E2EFED" border="0"&gt;
          &lt;td align="center"&gt;&lt;xsl:value-of select="Rank"/&gt;&lt;/td&gt;
          &lt;td align="center"&gt;&lt;xsl:value-of select="Name"/&gt;&lt;/td&gt;
          &lt;td align="center"&gt;&lt;xsl:value-of select="Team"/&gt;&lt;/td&gt;   
        &lt;/tr&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>