diff options
Diffstat (limited to 'filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl')
-rw-r--r-- | filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl b/filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl index f26e2cc0a6c9..0f36b36486de 100644 --- a/filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl +++ b/filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl @@ -93,7 +93,10 @@ </xsl:attribute> </xsl:if> <xsl:attribute name="class"> - <xsl:value-of select="translate(parent::*/@text:style-name, '.,;: %()[]/\+', '_____________')"/> + <xsl:call-template name="create-unique-style-id"> + <xsl:with-param name="styleName" select="parent::*/@text:style-name"/> + <xsl:with-param name="styleFamily" select="'table'"/> + </xsl:call-template> </xsl:attribute> </xsl:if> @@ -291,7 +294,7 @@ Scenarios tabstops -> put the preceding tab stops into a TD (left aligned is default) 4) first style:type would have no right preceding tabStop - -> works well with first sceanrios 1 and 3 + -> works well with first scenarios 1 and 3 5) last style:type would be a special case, if it would be left aligned, but this won't happen in our case... :D @@ -317,7 +320,10 @@ Scenarios unmatched: <xsl:element namespace="{$namespace}" name="p"> <xsl:if test="$position = 1"> <xsl:attribute name="class"> - <xsl:value-of select="translate(@text:style-name, '.,;: %()[]/\+', '_____________')"/> + <xsl:call-template name="create-unique-style-id"> + <xsl:with-param name="styleName" select="@text:style-name"/> + <xsl:with-param name="styleFamily" select="'paragraph'"/> + </xsl:call-template> </xsl:attribute> </xsl:if> <xsl:apply-templates mode="content-table"> @@ -341,7 +347,10 @@ Scenarios unmatched: <xsl:element namespace="{$namespace}" name="p"> <xsl:if test="$position = 1"> <xsl:attribute name="class"> - <xsl:value-of select="translate(@text:style-name, '.,;: %()[]/\+', '_____________')"/> + <xsl:call-template name="create-unique-style-id"> + <xsl:with-param name="styleName" select="@text:style-name"/> + <xsl:with-param name="styleFamily" select="'paragraph'"/> + </xsl:call-template> </xsl:attribute> </xsl:if> <xsl:call-template name="grab-cell-content-before-tab-stop"> @@ -358,7 +367,10 @@ Scenarios unmatched: <xsl:element namespace="{$namespace}" name="p"> <xsl:if test="$position = 1"> <xsl:attribute name="class"> - <xsl:value-of select="translate(@text:style-name, '.,;: %()[]/\+', '_____________')"/> + <xsl:call-template name="create-unique-style-id"> + <xsl:with-param name="styleName" select="@text:style-name"/> + <xsl:with-param name="styleFamily" select="'paragraph'"/> + </xsl:call-template> </xsl:attribute> </xsl:if> <xsl:call-template name="grab-cell-content-before-tab-stop"> @@ -382,7 +394,10 @@ Scenarios unmatched: <xsl:element namespace="{$namespace}" name="p"> <xsl:if test="$position = 1"> <xsl:attribute name="class"> - <xsl:value-of select="translate(@text:style-name, '.,;: %()[]/\+', '_____________')"/> + <xsl:call-template name="create-unique-style-id"> + <xsl:with-param name="styleName" select="@text:style-name"/> + <xsl:with-param name="styleFamily" select="'paragraph'"/> + </xsl:call-template> </xsl:attribute> </xsl:if> <xsl:element namespace="{$namespace}" name="td"> |