title: In XSLT, how do I truncate a value to the first five characters?
body: <p>So, I know absolutely nothing about XSLT.  I don't know what I'm doing, I don't know what I'm supposed to make the code do, and I don't know how to make it do whatever it is supposed to do.</p>
  
  <p>That being said, I know I'm supposed to truncate a name to the first five characters.</p>
  
  <p>I have this:</p>
  
  <pre><code>&lt;xsl:if test="string-length(/myQuery/Arguments/FirstName) &amp;gt;= 6"&gt;
  &lt;xsl:variable name = "x" select = "substring(/myQuery/Arguments/FirstName, 1, 5)"/&gt;
  &lt;/xsl:if&gt;
  </code></pre>
  
  <p>So, that <em>does</em> assign a truncated version of FirstName to X.  But how do I get it back into FirstName?</p>