title: Increment counter variable in xsl template call in for each loop
body: <p>This is my XMl:
          I want to print sth like this ,Numbering  as shown 1. 2. only if "name" is ABC . I am having little difficulty in assigning a counter variable and incrementing it and then checking for a certain value in XSLT. 
      Here is my code:</p>
  
  <pre><code>&lt;Details&gt;
  &lt;name&gt;ABC&lt;/name&gt;
  &lt;EFFECTIVEDATE&gt;2010-04-30&lt;/EFFECTIVEDATE&gt;
  &lt;/Details&gt;
  &lt;Details&gt;
  &lt;name&gt;EFG&lt;/name&gt;
  &lt;EFFECTIVEDATE&gt;2010-04-30&lt;/EFFECTIVEDATE&gt;
  &lt;/Details&gt;
  &lt;Details&gt;
  &lt;name&gt;XYZ&lt;/name&gt;
  &lt;EFFECTIVEDATE&gt;2022-04-01&lt;/EFFECTIVEDATE&gt;
  &lt;/Details&gt;
  &lt;Details&gt;
  &lt;name&gt;ABC&lt;/name&gt;
  &lt;EFFECTIVEDATE&gt;2022-04-01&lt;/EFFECTIVEDATE&gt;
  &lt;/Details&gt;
  &lt;Details&gt;
  &lt;name&gt;ABC&lt;/name&gt;
  &lt;EFFECTIVEDATE&gt;2022-04-01&lt;/EFFECTIVEDATE&gt;
  &lt;/Details&gt;
  </code></pre>
  
  <p>Here is XSL stylesheet: </p>
  
  <pre><code>&lt;xsl:for-each select="Details"&gt;
      &lt;/xsl:call-template name="DetaimTemplate"&gt;
  &lt;/xsl:for-each&gt;
  
  &lt;xsl:template name="DetaimTemplate"&gt;
  
  &lt;/xsl:template&gt; 
  </code></pre>
  
  <p>Expected result </p>
  
  <pre><code>  1.ABC
    2.ABC
    3.ABC
  </code></pre>
  
  <p>How can i print like <code>1.</code>    <code>2.</code> and so on</p>