title: How to insert element as nth record using XSLT
body: <p>Consider following input:</p>
  
  <pre><code>&lt;SettleList&gt;
  &lt;SettleObject&gt;
    &lt;ExternalVar&gt;5&lt;/ExternalVar&gt;
   &lt;/SettleObject&gt;
   &lt;SettleObject&gt;
    &lt;ExternalVar&gt;10&lt;/ExternalVar&gt;
  &lt;/SettleObject&gt;
  &lt;/SettleList&gt;
  </code></pre>
  
  <p>Now the requirement: All the records except 5th and 10th need to be zeroes while  the 5th and 10th will contain values.
  The prob is using apply-templates no parameters can be sent as for the second object and hence the index again starts from 1 instead of 6th record.</p>
  
  <p>I am trying this using XSLT</p>