title: How to add spaces between xml elements xslt transformation
body: <p>I have an XML as shown below and I am generating PDF using XSL FO XSLT transforamtion. How to add spaces between XML elements while dsiplaying them as table columns in the PDF?</p>
  
  <pre><code>&lt;Reports&gt;
  &lt;Report&gt;
  &lt;BatchDate&gt;2016-08-10T00:00:00&lt;/BatchDate&gt;
  &lt;ClientAccountNo&gt;ABCDE01384&lt;/ClientAccountNo&gt;
  &lt;Source&gt;N&lt;/Source&gt;
  &lt;CDSNo&gt;0000001387&lt;/CDSNo&gt;
  &lt;Price&gt;0.123000&lt;/Price&gt;
  &lt;Qty&gt;-1200&lt;/Qty&gt;
  &lt;TCurrency&gt;USD&lt;/TCurrency&gt;
  &lt;TNettAmt&gt;0&lt;/TNettAmt&gt;
  &lt;LCurrency&gt;USD&lt;/LCurrency&gt;
  &lt;LNettAmt&gt;-86.600000&lt;/LNettAmt&gt;
  &lt;PromotionInd&gt;N&lt;/PromotionInd&gt;
  &lt;BrkChgID&gt;BRK-N&lt;/BrkChgID&gt;
  &lt;BrkChgAmt&gt;50.000000&lt;/BrkChgAmt&gt;
  &lt;ClrChgID&gt;CLR&lt;/ClrChgID&gt;
  &lt;ClrChgAmt&gt;10.000000&lt;/ClrChgAmt&gt;
  &lt;SdcChgID&gt;SDC&lt;/SdcChgID&gt;
  &lt;SdcChgAmt&gt;1.000000&lt;/SdcChgAmt&gt;
  &lt;BinChgID /&gt;
  &lt;BinChgAmt&gt;0&lt;/BinChgAmt&gt;
  &lt;OthChgAmt&gt;0.000000&lt;/OthChgAmt&gt;
  &lt;TaxAmt&gt;0.000000&lt;/TaxAmt&gt;
  &lt;/Report&gt;
  &lt;/Reports&gt;
  </code></pre>
  
  <p>While ouputting the above XML, I need to add a space between the XML elements like for instance, let us take TaxAmt, I need to output it as Tax Amt. How can i do this? Below is my XSLT</p>
  
  <pre><code>    &lt;fo:table role="html:table" table-layout="auto" inline-progression-dimension="auto" line-height="2.5" width="100%" border="0px" border-collapse="collapse" border-spacing="3px" border-style="outset hidden" space-before.conditionality="retain" space-after.conditionality="retain" space-after="1em" space-before="1em"&gt;
            &lt;!--table header--&gt;
            &lt;xsl:for-each select="//Reports/Report[1]/*"&gt;
              &lt;fo:table-column column-width="proportional-column-width(4.77)" font-family="sans-serif" font-size="medium" /&gt;
            &lt;/xsl:for-each&gt;
            &lt;fo:table-header&gt;
  
              &lt;fo:table-row height="auto" color="#FFFFFF" background-color="#A1A1A1" text-align="center" font-weight="bold" font-family="sans-serif" font-size="medium"&gt;
                &lt;xsl:for-each select="/Reports/Report[1]/*"&gt;
                  &lt;fo:table-cell text-align="center"&gt;
                    &lt;fo:block font-size="medium" font-family="sans-serif"&gt;
                      &lt;xsl:value-of select="name()"/&gt;
                    &lt;/fo:block&gt;
                  &lt;/fo:table-cell&gt;
                &lt;/xsl:for-each&gt;
              &lt;/fo:table-row&gt;
            &lt;/fo:table-header&gt;
            &lt;!--table body--&gt;
            &lt;fo:table-body&gt;
              &lt;xsl:for-each select="/Reports/Report"&gt;
                &lt;fo:table-row display-align="before"&gt;
                  &lt;xsl:for-each select="*"&gt;
                    &lt;fo:table-cell text-align="center" border-top-color="rgb(255, 255, 255)" border-top-style="solid" border-width="1pt" padding="2pt"&gt;
                      &lt;fo:block font-size="medium" font-family="sans-serif"&gt;
                        &lt;xsl:text&gt;  &lt;/xsl:text&gt; &lt;xsl:value-of select="."/&gt;
                      &lt;/fo:block&gt;
                    &lt;/fo:table-cell&gt;
                  &lt;/xsl:for-each&gt;
                &lt;/fo:table-row&gt;
              &lt;/xsl:for-each&gt;
            &lt;/fo:table-body&gt;
          &lt;/fo:table&gt;
  </code></pre>