<!-- This construct is for list elements. Whenever a paragraph element is being used as child of a list element the name paragraph style is been used for
the list item. This can be switched as the paragaph style-name and the list-style-name are in the same element.
Otherwise there would be formatting errors (e.g. margin-left will be used for the content in the list elment and not for the list element itself). -->
<xsl:variable name="style-name">
<xsl:choose>
<xsl:when test="@style:list-style-name">
<xsl:value-of select="@style:list-style-name"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@style:name"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="not($is-parent-style)">
<xsl:text>, </xsl:text>
</xsl:if>
<xsl:choose>
<!-- normally 'p.' would be used as CSS element,
but header (h1, h2,...) are also from the style:family paragraph -->