<xsl:with-param name="styleAttributePath" select="$styles-node/style:style[@style:family=$style-family and @style:name=$current-style-name]/style:properties/@*"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<!--*** @End: GIVE OUT All COLLECTED STYLE ATTRIBUTES (only toplevel) ***-->
<!--*** End CONDITION: the last style parent has already been executed ***-->
<xsl:variable name="new-parent-style-name" select="$office:automatic-styles/style:style[@style:family='paragraph' and @style:name=$parent-style-name]/@style:parent-style-name"/>
<!--*** End CONDITION: the last style parent has already been executed ***-->
<xsl:variable name="new-parent-style-name" select="$office:styles/style:style[@style:family='paragraph' and @style:name=$parent-style-name]/@style:parent-style-name"/>
<!--** where to find the specific style (defined by name and family) wheter in office:automatic-styles or office:styles section -->
<xsl:choose>
<!--** if the specific style (defined by name and family) can be found in the office:automatic-styles section -->
<xsl:when test="$office:automatic-styles/style:style[@style:family='paragraph' and @style:name=$parent-style-name]">
<xsl:variable name="parent-property-node" select="$office:automatic-styles/style:style[@style:family='paragraph' and @style:name=$parent-style-name]/style:properties"/>
<!--** the specific style (defined by name and family) should be found in the office:styles section -->
<xsl:otherwise>
<xsl:variable name="parent-property-node" select="$office:styles/style:style[@style:family='paragraph' and @style:name=$parent-style-name]/style:properties"/>
<!--** where to find the specific style (defined by name and family) whether in office:automatic-styles or office:styles section -->
<xsl:choose>
<!--** if the specific style (defined by name and family) can be found in the office:automatic-styles section -->
<xsl:when test="$office:automatic-styles/style:style[@style:family='paragraph' and @style:name=$parent-style-name]">
<xsl:variable name="parent-property-node" select="$office:automatic-styles/style:style[@style:family='paragraph' and @style:name=$parent-style-name]/style:properties"/>
<!--** otherwise the specific style (defined by name and family) should be found in the office:styles section -->
<xsl:otherwise>
<xsl:variable name="parent-property-node" select="$office:styles/style:style[@style:family='paragraph' and @style:name=$parent-style-name]/style:properties"/>