title: Help on converting XML to positional text file without stripping spaces
body: <p>I'm trying to create a positional file out of an XML. I created the XSLT and work fine unless the field is filled with spaces. In that case the XSL returns only one space. I'm using MSXML (6.0).</p>
  
  <p>I have tried the following with no luck:</p>
  
  <pre><code>&lt;xsl:strip-space elements="*"/&gt;
  &lt;xsl:preserve-space elements="*"/&gt;
  
  &lt;fo:block white-space-collapse="false" white-space-treatment="preserve" &gt;
      &lt;!-- Code here --&gt;
  &lt;/fo:block&gt;
  </code></pre>
  
  <p>Here is the XML input, the XSLT and the output.</p>
  
  <pre><code>&lt;Document&gt;
        &lt;Header&gt;
          &lt;Title&gt;Long life to the queen   &lt;/Title&gt;
          &lt;Author&gt;Sam Catnip     &lt;/Author&gt;
          &lt;Year&gt;1996&lt;/Year&gt;
          &lt;Edition&gt;  1&lt;/Edition&gt;
          &lt;Price&gt;          12.99&lt;/Price&gt;
          &lt;Pages&gt;    1244&lt;/Pages&gt;
          &lt;AuthorNotes&gt;                    &lt;/AuthorNotes&gt;
          &lt;Abstract&gt;It is a great book  &lt;/Abstract&gt;
      &lt;/Header&gt;
        &lt;Header&gt;
          &lt;Title&gt;Life and live longer     &lt;/Title&gt;
          &lt;Author&gt;Bill Griffin   &lt;/Author&gt;
          &lt;Year&gt;2001&lt;/Year&gt;
          &lt;Edition&gt;  1&lt;/Edition&gt;
          &lt;Price&gt;           2.99&lt;/Price&gt;
          &lt;Pages&gt;      44&lt;/Pages&gt;
          &lt;AuthorNotes&gt;Yeah, right         &lt;/AuthorNotes&gt;
          &lt;Abstract&gt;Wishfull thinking    &lt;/Abstract&gt;
      &lt;/Header&gt;
  &lt;/Document&gt;
  </code></pre>
  
  <p>XSLT:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"&gt;
      &lt;xsl:output method="text"/&gt;
      &lt;xsl:template match="//Document"&gt;
          &lt;xsl:for-each select="./Header"&gt;
              &lt;xsl:value-of select="./Title"/&gt;
              &lt;xsl:value-of select="./Author"/&gt;
              &lt;xsl:value-of select="./Year"/&gt;
              &lt;xsl:value-of select="./Edition"/&gt;
              &lt;xsl:value-of select="./Price"/&gt;        
              &lt;xsl:value-of select="./Pages"/&gt;
              &lt;xsl:value-of select="./AuthorNotes"/&gt;
              &lt;xsl:value-of select="./Abstract"/&gt;
              &lt;xsl:text&gt;&amp;#13;&amp;#10;&lt;/xsl:text&gt;
          &lt;/xsl:for-each&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Long life to the queen   Sam Catnip     1996  1          12.99    1244It is a great book  
  Life and live longer     Bill Griffin   2001  1           2.99      44Yeah, right         Wishfull thinking    
  </code></pre>
  
  <p>When it should be:</p>
  
  <pre><code>Long life to the queen   Sam Catnip     1996  1          12.99    1244                    It is a great book  
  Life and live longer     Bill Griffin   2001  1           2.99      44Yeah, right         Wishfull thinking    
  </code></pre>
  
  <p>I will really appreciate any idea on how to solve this.</p>
  
  <p>Thanks,</p>
  
  <p>Arty</p>