title: why xml:space="preserve" is not honored by php xslt transformation
body: <p>I try to produce some DOCX documents by transforming document.xml in the DOCX and reinjecting it back.</p>
  
  <p>All works fine except for this piece of code:</p>
  
  <pre><code>&lt;w:r&gt;
      &lt;w:t xml:space="preserve"&gt; &lt;/w:t&gt;
  &lt;/w:r&gt;
  </code></pre>
  
  <p>which after transformation becomes:</p>
  
  <pre><code>&lt;w:r&gt;
  &lt;w:t xml:space="preserve"/&gt;
  &lt;/w:r&gt;
  </code></pre>
  
  <p>If I put some text, other than a single space, in the w:t it works ok.</p>
  
  <p>Any help will be highly appreciated.
  Thank you!</p>
  
  <p>P.S. I do the transformation with php 5.5.9 shipped with XAMPP 1.8.3 XsltProcessor.
  And another note: The same code worked fine with an older version of XAMPP (1.8.1 if I remember correctly)</p>
  
  <p>Followed nwellnhof solution and replaced the piece of code as follows:</p>
  
  <pre><code>&lt;w:r&gt;
      &lt;w:t xml:space="preserve"&gt;&lt;xsl:text&gt; &lt;/xsl:text&gt;&lt;/w:t&gt;
  &lt;/w:r&gt;
  </code></pre>
  
  <p>and it worked.</p>
  
  <p>@nwellnhof thank you!</p>