title: Concatenate values of multiple xml elements into single element using xslt
body: <p>My source xml file has elements in this form:</p>
  
  <pre><code>&lt;field name="Address1"&gt;Address1Value&lt;/field&gt;
  &lt;field name="Address2"&gt;Address2Value&lt;/field&gt;
  &lt;field name="Address3"&gt;Address3Value&lt;/field&gt;
  </code></pre>
  
  <p>I need to merge these into a single element, thus:</p>
  
  <pre><code>&lt;field name="Address"&gt;Address1Value\r\nAddress2Value\r\nAddress3Value&lt;/field&gt;
  </code></pre>
  
  <p>I know how to get the value of the Address1 element (as below), I just can't figure out how to augment it with the other two. How can I do this?</p>
  
  <pre><code>&lt;xsl:template match="field[@name = 'Address1']"&gt;
      &lt;field&gt;
          &lt;xsl:attribute name="name"&gt;Address&lt;/xsl:attribute&gt;
          &lt;xsl:value-of select="concat(., 'how-do-I-get-the-values-of-Address2-and-Address-here3?')"/&gt;
      &lt;/field&gt;
  &lt;/xsl:template&gt;
  </code></pre>