Thanks for your reply! Henrik Just .
That's right,when I merge all columns in a row,the struction is as follow:
<table:table-row table:style-name="ro1">
<table:table-cell table:number-columns-repeated="256"/>
</table:table-row>
and the struction :
<table:table-row table:style-name="ro1" table:number-rows-repeated="65536">
<table:table-cell/>
<table:covered-table-cell/>
</table:table-row>
I use the attribute of 'table:number-rows-repeated' replace the repeated
parts,that's effective;
But why not use this attribute?can you give me some information?
----- Original Message -----
From: "Henrik Just" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, April 27, 2007 3:11 PM
Subject: Re: [xml-dev] Merge all rows in one column
> Hi
>
> [email protected] den 27. april 2007 kl. 04:16 +0000 skrev:
>>Hi folks!
>>I encounter a problem,the discription is as follows :
>>1. Creat a new Spreadsheet,select a column,just like the column of 'B';
>>2. Run the function of 'merge cells',It makes all rows merged in the
>>column 'B';
>>the discription of the OOo:
>> <office:body>
>> <table:table table:name="Sheet1" table:style-name="ta1">
>> <table:table-column table:style-name="co1"
>>table:number-columns-repeated="2"
>>table:default-cell-style-name="Default"/>
>> <table:table-row table:style-name="ro1">
>> <table:table-cell/>
>> <table:table-cell table:number-columns-spanned="1"
>>table:number-rows-spanned="65536"/>
>> </table:table-row>
>> <table:table-row table:style-name="ro1">
>> <table:table-cell/>
>> <table:covered-table-cell/>
>> </table:table-row>
>> ...
>> <table:table-row table:style-name="ro1">
>> <table:table-cell/>
>> <table:covered-table-cell/>
>> </table:table-row>
>> </office:body>
>>in this struction,the part of
>> <table:table-row table:style-name="ro1">
>> <table:table-cell/>
>> <table:covered-table-cell/>
>> </table:table-row>
>>is in numbers,so the problem is the file with the format of XML is so
>>large,which lead to open the file with tools very slow,and it is
>>
>>difficult to transform the file to other format;
>>
>>Is there any way to avoid these problems,look forward to your help!
>
> OpenDocument has a special attribute to deal with this situation; instead
> of repeating the table rows
> <table:table-row table:style-name="ro1">
> <table:table-cell/>
> <table:covered-table-cell/>
> </table:table-row>
> 65536 times in the file, it is possible to use only one occurence using
> the table:number-rows-repeated attribute:
> <table:table-row table:style-name="ro1"
> table:number-rows-repeated="65536">
> <table:table-cell/>
> <table:covered-table-cell/>
> </table:table-row>
> Calc uses this optimization in other cases, but for some reason not here?
>
> Best regards
> Henrik Just
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]