<!-- The footnote symbol is the prefix for a footnote in the footer -->
<xsl:param name="footnotePrefix"/>
<!-- 1) In ODF sometimes the followig children are nested
<text:p>
<draw:frame>
<draw:text-box>
<text:p>
Which results in a paragraphs (the last text:p) having a paragraph as its anchestor.
In HTML a 'p' can only have inline documents (no other 'p' as children'),
a 'div' will be given for the ancestors instead.
2) ODF images are embedded in a paragraph, but CSS is not able to express a horizontal alignment for an HTML image (text:align is only valid for block elements).
A surrounding 'div' element taking over the image style solves that problem, but the div is invalid as child of a paragraph
Therefore the paragraph has to be exchanged with a HTML div element
<!-- A list is empty if a text:list does not have a text:list-header or text:list-item (wildcard as only those can exist beyond a text:list), which contains a text:h or text:p -->
<xsl:when test="($precedingListItemOfSameStyle and $precedingListItemOfSameLevelAndStyle) or ($precedingListItemOfSameStyle and $listStyle/text:list-style/@text:consecutive-numbering)">