title: How can I trim space in XSLT without replacing repating whitespaces by single ones?
body: <p>The function <code>normalize-space</code> replaces sequences of whitespaces by a single space and trims the provided string. How can I only trim the string without the replacement of whitespaces? There are proprietary solutions like <code>orcl:left-trim</code>, but I am looking for a non-proprietary one.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>&lt;xsl:value-of select="trim(/Car/Description)"/&gt;
  </code></pre>
  
  <p>should turn </p>
  
  <pre><code>&lt;car&gt;
    &lt;description&gt;  To get more information look at:     www.example.com &lt;/description&gt;
  &lt;/car&gt;
  </code></pre>
  
  <p>into</p>
  
  <pre><code>"To get more information look at:     www.example.com"
  </code></pre>