title: Creating an incremental count variable in XSLT / XPath when using Xpath for..in..return?
body: <p>I am using the XPath for loop equivalent - </p>
  
  <pre><code>&lt;xsl:for-each select="for $i in 1 to $length return $i"&gt;...
  </code></pre>
  
  <p>And I really need a count variable, how would I achieve this? </p>
  
  <p>Thanks, </p>
  
  <p>Ash.</p>