Section element have to close after the para element using XSLT
<p>While doing docbook to dita process using oxygen, I need to change some.</p>

<p>My Input xml file is:</p>

<pre><code>&lt;section&gt;&lt;title&gt;DESCRIPTION&lt;/title&gt;
&lt;para&gt;The A380 is available with two types of turbofan engines, the
Rolls-Royce Trent 900 (variants A380-841, −842 and −843F) or the Engine
Alliance GP7000 (A380-861 and −863F).  Noise reduction was an important
requirement in the A380 design, and particularly affects engine design.&lt;/para&gt;
&lt;section&gt;&lt;title&gt;Wing Landing Gear&lt;/title&gt;
&lt;section&gt;&lt;para&gt;Each wing landing gear has a leg assembly and
a four-wheel bogie beam. The WLG leg includes a Bogie Trim Actuator
(BTA) and an oleo-pneumatic shock absorber.&lt;/para&gt;
&lt;/section&gt;&lt;/section&gt;&lt;section&gt;&lt;title&gt;Body Landing Gear&lt;/title&gt;
&lt;section&gt;&lt;para&gt;The two body landing gears have a six-wheel bogie
beam and a leg assembly that includes an oleo- pneumatic shock absorber.
A two-piece drag-stay assembly mechanically locks the leg in the extended
position.&lt;/para&gt;
&lt;/section&gt;&lt;/section&gt;&lt;/section&gt;
</code></pre>

<p>XSL(2.0) used as:</p>

<pre><code> &lt;xsl:template match="*|text()|@*"&gt;
    &lt;xsl:copy&gt;
        &lt;xsl:apply-templates select="@*"/&gt;
        &lt;xsl:apply-templates/&gt;
    &lt;/xsl:copy&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="section"&gt;
        &lt;section&gt;       
            &lt;xsl:apply-templates select="node()[not(self::section)]"/&gt;
        &lt;/section&gt;
&lt;xsl:apply-templates select="section"/&gt; 
    &lt;/xsl:template&gt;   

&lt;xsl:template match="section/section[para]"&gt;
&lt;xsl:apply-templates/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="para"&gt;
  &lt;p&gt;
    &lt;xsl:apply-templates/&gt;
  &lt;/p&gt;
&lt;/xsl:template&gt;
</code></pre>

<p>Output which I'm getting is:</p>

<pre><code>&lt;section&gt;
         &lt;title&gt;DESCRIPTION&lt;/title&gt;
         &lt;p&gt;The A380 is available with two types of turbofan engines, the
Rolls-Royce Trent 900 (variants A380-841, −842 and −843F) or the Engine
Alliance GP7000 (A380-861 and −863F).  Noise reduction was an important
requirement in the A380 design, and particularly affects engine design.&lt;/p&gt;
         &lt;/section&gt;
      &lt;section&gt;
         &lt;title&gt;Wing Landing Gear&lt;/title&gt;
      &lt;/section&gt;
      &lt;p&gt;Each wing landing gear has a leg assembly and
a four-wheel bogie beam. The WLG leg includes a Bogie Trim Actuator
(BTA) and an oleo-pneumatic shock absorber.&lt;/p&gt;
      &lt;section&gt;
         &lt;title&gt;Body Landing Gear&lt;/title&gt;
      &lt;/section&gt;
      &lt;p&gt;The two body landing gears have a six-wheel bogie
beam and a leg assembly that includes an oleo- pneumatic shock absorber.
A two-piece drag-stay assembly mechanically locks the leg in the extended
position.&lt;/p&gt;
</code></pre>

<p>Expected output xml needs to be:</p>

<pre><code>&lt;section&gt;
         &lt;title&gt;DESCRIPTION&lt;/title&gt;
         &lt;p&gt;The A380 is available with two types of turbofan engines, the
Rolls-Royce Trent 900 (variants A380-841, −842 and −843F) or the Engine
Alliance GP7000 (A380-861 and −863F).  Noise reduction was an important
requirement in the A380 design, and particularly affects engine design.&lt;/p&gt;
         &lt;/section&gt;
      &lt;section&gt;
         &lt;title&gt;Wing Landing Gear&lt;/title&gt;
          &lt;p&gt;Each wing landing gear has a leg assembly and
a four-wheel bogie beam. The WLG leg includes a Bogie Trim Actuator
(BTA) and an oleo-pneumatic shock absorber.&lt;/p&gt;&lt;/section&gt;
      &lt;section&gt;
         &lt;title&gt;Body Landing Gear&lt;/title&gt;
        &lt;p&gt;The two body landing gears have a six-wheel bogie
beam and a leg assembly that includes an oleo- pneumatic shock absorber.
A two-piece drag-stay assembly mechanically locks the leg in the extended
position.&lt;/p&gt;&lt;/section&gt;
</code></pre>

<p>Please see the code and guide on me. Thanks in advance</p>