title: XSLT indentation lost when removing a node
body: <p>I have the following xml file </p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;start&gt;
      &lt;param_1&gt;          
          &lt;short_name&gt;parameter_a&lt;/short_name&gt;
      &lt;/param_1&gt;
      &lt;param_2&gt;          
          &lt;short_name_2&gt;parameter_b&lt;/short_name_2&gt;
      &lt;/param_2&gt;
  &lt;/start&gt;
  </code></pre>
  
  <p>and I have the following XSLT file:    </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;        
      &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          xmlns:xlink="http://www.w3.org/1999/xlink"&gt;
          &lt;xsl:output method="xml" indent="yes" encoding="utf-8" /&gt;       
      &lt;xsl:template match="/" &gt;  
          &lt;gml:description&gt;
                      &lt;xsl:value-of select="document('/path/to/mydoc.xml')/start/param_1/short_name"/&gt;
      &lt;/gml:description&gt;
      &lt;gml:description&gt;
              &lt;xsl:for-each select="document('/path/to/mydoc.xml')/start/param_2"&gt;
                  &lt;xsl:variable name="my_xlink" select="short_name_2"/&gt;
                      &lt;xsl:value-of select="$my_offering1_observed_property_xlink"/&gt;    
                  &lt;om:observedProperty xlink:href="{$my_offering1_observed_property_xlink}"/&gt;
                  &lt;/xsl:for-each&gt;
      &lt;/gml:description&gt;
   &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;   
  </code></pre>
  
  <p>this is the output I get</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;gml:description&gt;parameter_a&lt;/gml:description&gt;
  &lt;gml:description&gt;parameter_b&lt;om:observedProperty xlink:href="parameter_b"/&gt;&lt;/gml:description&gt;
  </code></pre>
  
  <p>the problem is that what I would like to have is this result </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;gml:description&gt;parameter_a&lt;/gml:description&gt;
      &lt;om:observedProperty xlink:href="parameter_b"/&gt;
  </code></pre>
  
  <p>but if I remove the <code>&lt;gml:description&gt;</code> from my XSLT file node the final xml lost its indentation:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
          &lt;gml:description&gt;parameter_a&lt;/gml:description&gt;&lt;om:observedProperty xlink:href="parameter_b"/&gt;
  </code></pre>
  
  <p>could you please tell me what I'm doing wrong?</p>
  
  <p>thanks</p>