To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=65447
------- Additional comments from [EMAIL PROTECTED] Tue May 16 14:35:16 -0700
2006 -------
finally found the source so here comes the patch:
Index: wordml2ooo_table.xsl
===================================================================
RCS file: /cvs/framework/filter/source/xslt/import/wordml/wordml2ooo_table.xsl,v
retrieving revision 1.8
diff -u -r1.8 wordml2ooo_table.xsl
--- wordml2ooo_table.xsl 8 Sep 2005 22:13:21 -0000 1.8
+++ wordml2ooo_table.xsl 16 May 2006 21:33:53 -0000
@@ -48,8 +48,13 @@
</style:style>
</xsl:template>
<xsl:template match="w:tblPr" mode="style">
+ <xsl:variable name="table-number">
+ <xsl:number count="w:tbl" from="/w:wordDocument/w:body" level="any"
format="1" />
+ </xsl:variable>
<xsl:element name="style:style">
- <xsl:attribute name="style:name">Table<xsl:number count="w:tbl"
from="/w:wordDocument/w:body" level="any" format="1"/>
+ <xsl:attribute name="style:name">
+ <xsl:text>Table</xsl:text>
+ <xsl:value-of select="$table-number"/>
</xsl:attribute>
<xsl:attribute name="style:family">table</xsl:attribute>
<xsl:if test="w:tblStyle">
@@ -61,10 +66,17 @@
<xsl:variable name="last-section-property"
select="preceding::w:pPr/w:sectPr[1]"/>
<xsl:variable name="next-section-property"
select="following::w:sectPr[1]"/>
<xsl:variable name="last-next-p-tbl"
select="$last-section-property[last()]/following::*[name()='w:p' or
name()='w:tbl']"/>
- <xsl:if test="not($next-section-property/w:type/@w:val =
'continuous') and generate-id($last-next-p-tbl[1]) = generate-id(..) and
not(ancestor::w:sectPr or ancestor::w:styles)">
- <xsl:attribute
name="style:master-page-name">Standard<xsl:value-of
select="$section-property-number + 1"/>
+ <xsl:choose>
+ <xsl:when test="not($next-section-property/w:type/@w:val =
'continuous') and generate-id($last-next-p-tbl[1]) = generate-id(..) and
not(ancestor::w:sectPr or ancestor::w:styles)">
+ <xsl:attribute name="style:master-page-name">
+ <xsl:text>Standard</xsl:text>
+ <xsl:value-of select="$section-property-number + 1" />
</xsl:attribute>
- </xsl:if>
+ </xsl:when>
+ <xsl:when test="$table-number = 1">
+ <xsl:attribute
name="style:master-page-name">Standard1</xsl:attribute>
+ </xsl:when>
+ </xsl:choose>
<xsl:element name="style:table-properties">
<xsl:choose>
<xsl:when test="w:jc/@w:val = 'left' or w:jc/@w:val =
'center' or w:jc/@w:val = 'right'">
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]