title: How to pass multiple incoming tags in single output tag
body: <p>We have a GivenName field which comes as multiple tag in input. for ex:</p>
  
  <pre><code>    &lt;PersonName&gt;
        &lt;Surname&gt;BNWHBQQ&lt;/Surname&gt;
        &lt;GivenName&gt;Adam&lt;/GivenName&gt;
        &lt;GivenName&gt;Sam&lt;/GivenName&gt;
        &lt;GivenName&gt;Peter&lt;/GivenName&gt;
      &lt;/PersonName&gt;
  </code></pre>
  
  <p>we need to concatenate all GivenName present in input and pass it in one tag, for ex:</p>
  
  <pre><code>    &lt;db:PR_OFFENDER&gt;
          &lt;db:SURNAME&gt;BNWHBQQ&lt;/db:SURNAME&gt;
          &lt;db:GIVEN_NAME&gt;Adam Sam Peter&lt;/db:GIVEN_NAME&gt;
      &lt;/db:PR_OFFENDER&gt;
  </code></pre>
  
  <p>I tried:
  I tried using for loop but thats of no use as i am getting multiple  in output as well, something like:</p>
  
  <pre><code>&lt;xsl:if test="out:PartyEntity/out:Person/out:PersonName/out:GivenName"&gt;
                    &lt;xsl:for-each select="out:PartyEntity/out:Person/out:PersonName/out:GivenName"&gt;
                      &lt; db:GIVEN_NAME&gt;
                        &lt;xsl:value-of select="normalize-space(.)"/&gt;
                       &lt;/db:GIVEN_NAME&gt; 
                    &lt;/xsl:for-each&gt;
              &lt;/xsl:if&gt;
  </code></pre>
  
  <p>I can use something like below, But the output does not look nice, and I can have multiple given names in input, so this format wont work either.</p>
  
  <pre><code>&lt;xsl:value-of select="concat(out:PartyEntity/out:Person/out:PersonName/out:GivenName[1],' ',out:PartyEntity/out:Person/out:PersonName/out:GivenName[2], ' ')"/&gt;
  </code></pre>
  
  <p>Thanks in Advance,
  Vivek</p>