title: Update variable value in XSLT for-each loop
body: <p>I have this XML:</p>
  
  <pre><code>&lt;Root&gt;
    &lt;Employee&gt;
      &lt;Name&gt;Dash&lt;/Name&gt;
      &lt;Age&gt;23&lt;/Age&gt;
    &lt;/Employee&gt;
    &lt;Employee&gt;
      &lt;Name&gt;Gwen&lt;/Name&gt;
      &lt;Age&gt;22&lt;/Age&gt;
    &lt;/Employee&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>And I need to convert to below XML using XSLT:</p>
  
  <pre><code>&lt;Root&gt;
    &lt;Employee&gt;
      &lt;Name&gt;Dash,Gwen&lt;/Name&gt;
      &lt;Age&gt;23,22&lt;/Age&gt;
    &lt;/Employee&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>I am using the for-each loop to get the values of the sub-nodes of the <code>&lt;Employee&gt;</code> node.The problem I am facing is I cannot figure out how to store the concatenated values in another temperoary variable in XSLT.I found on many sites that we cannot update the variables in the XSLT, so is there any alternative solution for this?</p>