Bug Hunting Session
Bug 101710 - GSoC table template: The saved file is invalid ODF 1.2 extended
Summary: GSoC table template: The saved file is invalid ODF 1.2 extended
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Table-Styles Writer-Tables-Style ODF-export-invalid
  Show dependency treegraph
Reported: 2016-08-24 20:39 UTC by Regina Henschel
Modified: 2018-11-06 14:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Test document with table template (13.26 KB, application/vnd.oasis.opendocument.text)
2016-08-24 20:39 UTC, Regina Henschel

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2016-08-24 20:39:11 UTC
Created attachment 127009 [details]
Test document with table template

The attached document was created and saved with Version:
Build ID: d5fab973d0af95c433c5f6a9492014f7db642489
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-08-24_00:07:50
Locale: de-DE (de_DE); Calc: group

Run the validator http://odf-validator2.rhcloud.com/odf-validator2/ and select the ODF Version "ODF extended conforming". In that mode all parts in a foreign name space are ignored. Choose the attached file. You get errors concerning the attribute "style:data-style-name".

Now open the package and look into the styles.xml. You will find the mentioned attribute in the styles "myTableTemplate.#" in the child element style:table-cell-properties which were created for the table template "myTableTemplate". And indeed, the attribute is wrong there. Look at the specification of "style:table-cell-properties" in section 17.18 in http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1416518_253892949. The attribute style:data-style-name is not listed in the allowed attributes.
Comment 1 Regina Henschel 2016-08-24 21:11:01 UTC
Locking the other way round, where style:data-style-name is used, you find section 19.469 with a list of places. The part 19.469.3<style:style> seems to apply here. If I move the attribute one level up in the node tree, the validator does no longer complain about a wrong place. But it is still not correct. The value of the attribute is bad. It is "10101" but such style does not exist. It has to be "N10101" which is the number:currency-style element in the file content.xml.
Comment 2 Yousuf Philips (jay) (retired) 2016-09-03 14:54:40 UTC
Confirmed with a resaved version of attachment 127009 [details].

Build ID: f7513f0f53f2d074c08610a68fb787bb379c31d4
CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-09-02_23:58:05
Locale: en-US (en_US.UTF-8); Calc: group
Comment 3 QA Administrators 2018-05-29 02:37:22 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2018-11-06 14:19:39 UTC
The generated tables are still invalid. Tested in Version: (x64)
Build ID: f825e6d4082c0d0beb1c95b881f6a2ee9bfc9161
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-05_00:20:26
Locale: de-DE (en_US); Calc: CL