title: XSLT Remove leading and trailing whitespace of all attributes
body: <p>How can I create an identical XML sheet, but with the leading and trailing whitespaces of each attribute removed? (using XSLT 2.0)</p>
  
  <p>Go from this:</p>
  
  <pre><code>&lt;node id="DSN "&gt;
      &lt;event id=" 2190 "&gt;
          &lt;attribute key=" Teardown"/&gt;
          &lt;attribute key="Resource "/&gt;
      &lt;/event&gt;
  &lt;/node&gt;
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>&lt;node id="DSN"&gt;
      &lt;event id="2190"&gt;
          &lt;attribute key="Teardown"/&gt;
          &lt;attribute key="Resource"/&gt;
      &lt;/event&gt;
  &lt;/node&gt;
  </code></pre>
  
  <p><s> I suppose I'd prefer to use the <code>normalize-space()</code> function, but whatever works. </s></p>