Created attachment 127012 [details]
Test document with table template
Look into the styles.xml file of the package. It has a table:table-template element with the attribute table:name. This name is needed, for reference by the attribute table:template-name of the table:table element.
Some lines up you find the cell styles defined for the table-template, e.g. in the attached document a style:style element with attribute style:name="myTableTemplate.16". In the same element you see the attribute style:parent-style-name="myTableTemplate".
I think, that this value is not allowed, because "myTableTemplate" is not value of an attribute style:name but of the attribute table:name. The style:style element with attribute style:name="myTableTemplate.16" belongs to the style family "table-cell". Therefore its parent should also be one of the family "table-cell".
Even if you will say, that it is allowed, it is not meaningful. Because the table-template is a set of references to table-cell styles, it would be ambiguous which to use and in worst case, when using "myTableTemplate.16" results in an endless loop.
A correct solution can be to define a style:default-style for the family table-cell, which can be used for those properties, which are common to the cells or reflect the implementation defaults. Such style:default-style element is missing currently anyway. Of cause, especially, when several table templates exists in the document, defining a separate parent style for each table template makes sense too.
Jakub plans to simply not write that attribute for now.
Jakub Trzebiatowski committed a patch related to this issue.
It has been pushed to "master":
tdf#101712 Writer Table Style; odf export; remove parent export for cell style
It will be available in 5.3.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.