title: XSLT xsl:normalize-space() function not working
body: <p>I have followed the MSDN documentation verbatim <a href="http://msdn.microsoft.com/en-us/library/ms256063.aspx" rel="noreferrer">here</a> to no avail. </p>
  
  <p>An example of my XML:</p>
  
  <pre><code>&lt;Ticket xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;LogNo&gt;454564&lt;/LogNo&gt;
      &lt;CaseNumber&gt;
          &lt;Part1&gt;FGV&lt;/Part1&gt;
          &lt;Part2&gt;9999&lt;/Part2&gt;
          &lt;Part3&gt;88888888       &lt;/Part3&gt;
      &lt;/CaseNumber&gt;
  &lt;/Ticket&gt;
  </code></pre>
  
  <p>An example of my XSLT:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
   &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
   &lt;xsl:strip-space elements="*" /&gt;
  
  &lt;xsl:template match="/text"&gt;
    &lt;xsl:value-of select='normalize-space()'/&gt;
  &lt;/xsl:template&gt;
  
   &lt;xsl:template match="Ticket"&gt;
    &lt;Ticket&gt;&lt;xsl:attribute name="LogNumber"&gt;&lt;xsl:value-of select="LogNo"/&gt;&lt;/xsl:attribute&gt;
      &lt;CaseNumber&gt;&lt;xsl:value-of select="CaseNumber/Part1"/&gt;-&lt;xsl:value-of select="CaseNumber/Part2"/&gt;-&lt;xsl:value-of select="CaseNumber/Part3"/&gt;&lt;/CaseNumber&gt;
    &lt;/Ticket&gt;
   &lt;/xsl:template&gt;
  
   &lt;/xsl:stylesheet&gt; 
  </code></pre>
  
  <p>My output XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="IBM437"?&gt;
  &lt;Tickets&gt;
    &lt;Ticket LogNumber="454564"&gt;
      &lt;CaseNumber&gt;FGV-9999-88888888       &lt;/CaseNumber&gt;
    &lt;/Ticket&gt;
  &lt;/Tickets&gt;
  </code></pre>
  
  <p>I am using </p>
  
  <pre><code>&lt;xsl:template match="/text"&gt;
      &lt;xsl:value-of select='normalize-space()'/&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>as the MSDN article and everyone else on the net says, but can't seem to remove the trailing whitespace from CaseNumber Part3. Is there something I am doing wrong?</p>