| Summary: | Writer ODF export: invalid attribute "style:keep-together" | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | sasha.libreoffice |
| Component: | Writer | Assignee: | Michael Stahl (allotropia) <michael.stahl> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | erack, michael.stahl, sasha.libreoffice, thb |
| Priority: | medium | ||
| Version: | 3.5.0 release | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:3.5.1 target:3.6.0beta0 odf odf_validation | ||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 108198 | ||
| Attachments: |
validated file
full eror output |
||
|
Description
sasha.libreoffice
2012-01-31 07:01:54 UTC
Created attachment 56392 [details]
full eror output
there is a configuration setting in
officecfg/registry/data/org/openoffice/Office/Common.xcu:
<node oor:name="Save">
<node oor:name="Document">
<prop oor:name="SaveBackwardCompatibleODF" oor:type="xs:boolean">
<value>true</value>
</prop>
unfortunately this is enabled by default.
there doesn't seem to be any code in LO that changes the setting,
it is only read by the ODF export filter.
some digging reveals that it is used for the following cases
where invalid ODF elements or attributes are written for
backwards compatibility reasons:
- style:keep-together
sw/source/filter/xml/xmlexpit.cxx
bce5e157785745a6729db62b15fb98bc396cddee
- table:dependence
sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
c7a3859693971bf7103bfb0d05d64712e724fa37
(this one actually has an OOo issue i#80033)
- animation:iterate-interval
xmloff/source/draw/animationexport.cxx
7477a65e09b20917adf025550c550f8822b508ee
bdbec2daaaba5ab0a9456811d05c4b51431dc7a8
- xlink:*
xmloff/source/draw/shapeexport2.cxx
77baabe992c77018a0467ffec8f9482f8d76b66b
615b3824b258d09e24d92b0135827e03bfd97da7
OOo i#42375
- text:page-continuation-string
xmloff/source/text/txtflde.cxx
575222083e058a740f5ad69e14e18622c3d4f7af
- office:value-type
xmloff/source/text/txtflde.cxx
66b908b45cde78af020b35e817e67bc40b8493f0
OOo i#81766
apparently all of these went into OOo 2.4 or earlier versions;
in all cases the ODF import code was adapted to read the ODF conformant
equivalent of the invalid elements or attributes.
thus this is only for backward compatibility with OOo 2.3 or earlier.
thus i would say that at least the configuration setting should
be turned off by default in LO master and 3.5.
perhaps we should even remove the specific uses of this setting on master.
but i would want to retain the configuration option as such,
because perhaps some other defect will be identified that
would require such a hack for a transition period.
fixed by changing the configuration setting on master: e2bc0c04ba0c33e02f1842013041f26ccb2de77d Thanks! |