15.5.9 Closing DITA ancestor elements
To get a block element under the correct parent, you might have to specify that an ancestor element (and all its descendants) must end when the current block element ends; or that the prior block must end before the current block element begins.
§15.5.9.1 Ending ancestor elements before the current block
§15.5.9.2 Ending ancestor elements after the current block
> 15 Converting to DITA XML > 15.5 Nesting DITA block elements > 15.5.9 Closing DITA ancestor elements