title: xslt, xml to txt using substring, lowercase and concatenation
body: <p>I have a xml file like the one below</p>
  
  <pre><code>&lt;perosn&gt;
      &lt;data&gt;
          &lt;name&gt;
              &lt;firstName&gt;Albert&lt;/firstName&gt;
              &lt;lastName&gt;Einstein&lt;/lastName&gt;
          &lt;/name&gt;
      &lt;/data&gt;
  &lt;/person&gt;
  </code></pre>
  
  <p>I would like to tranasform it into txt that looks like that.</p>
  
  <p>txt output:</p>
  
  <pre><code>firstName,lastName,userID
  Albert,Einstein,a.einst
  </code></pre>
  
  <p>What I want to do is to substring firstName to 1 character, substring lastName to 5 characters lower the case of both, and then concatenate them.</p>
  
  <p>The problem is that I am not familiar with the syntaxt of xslt, and I came up with sth like this.</p>
  
  <pre><code>&lt;xsl:value-of select="lower-case(concat(substring($firstName,1,2), ".", substring($lastName,1,6)))"/&gt;
  </code></pre>
  
  <p>The other thin is this row " firstName,lastName,userID"</p>
  
  <p>The code I have is:</p>
  
  <pre><code> &lt;xsl:template match="/"&gt;
          &lt;File  xtt:separator="&amp;#xd;&amp;#xa;" xtt:align="left" xtt:severity="warning"  &gt;
              &lt;xsl:apply-templates/&gt;
              &lt;Header xtt:startTag =" firstName,lastName,userID" /&gt;               
          &lt;/File&gt;       
   &lt;/xsl:template&gt;
  </code></pre>
  
  <p>But I get it at the bottom not at the the top.</p>