If there is no paragraph between two headings the ditamap does not correspond to the topic-files. The references in the ditamap points to topic files that don't exist.
Eg:
Bookmap for a simple word doc containing a heading 1 and two heading 2. There is no paragraph between the heading 1 and the heading 2.
<bookmap xtrc="/w:document/w:body<span>[1]</span>/w:p<span>[1]</span>" xml:lang="da-DK">
<title>Få mere ud af Word</title>
<chapter xtrc="/w:document/w:body<span>[1]</span>/w:p<span>[2]</span>" href="topics/topic_1.dita" chunk="to-content">
<chapter xtrc="/w:document/w:body<span>[1]</span>/w:p<span>[3]</span>" href="topics/topic_1_1.dita">
<chapter xtrc="/w:document/w:body<span>[1]</span>/w:p<span>[10]</span>" href="topics/topic_1_2.dita">
</chapter>
</chapter></chapter></bookmap>
But the files generated are:
topic_1.dita
topic_1_0.dita
topic_1_1.dita
Anonymous
This is a documented restriction in the current processing: you must have something between heading levels or the processing gets confused.
The paragraph can be an ignored paragraph--it doesn't have to result in output, so even an empty Normal paragraph will work.
Since having two headings with no intervening text is bad writing practice (in general) I haven't seen addressing this as a very high priority.
Thank you for the quick answer! It is easy to fix the error then for the user as they just have to make an empty paragraph. The low priority makes perfect sence.
Released in 0.9.19RC12