https://bugs.freedesktop.org/show_bug.cgi?id=45446

Michael Stahl <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
         AssignedTo|[email protected] |[email protected]
                   |desktop.org                 |
                 CC|                            |[email protected],
                   |                            |[email protected]
     Ever Confirmed|0                           |1
            Summary|Writer FILESAVE: validation |Writer ODF export: invalid
                   |of odt not passed           |attribute
                   |                            |"style:keep-together"

--- Comment #2 from Michael Stahl <[email protected]> 2012-02-01 10:17:01 PST 
---

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.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to