Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hey,

so going through our validation errors in calc I found an interesting issue.

If you have a cell that returns or contains a value and format the cell as
boolean we export the value-type as boolean and the boolean-value as the
value of the (formula) cell.

Now obviously this generates invalid files as the boolean-value attribute
only accepts true and false. However looking further into the file format
spec it seems that this case is actually totally buggy in ODF itself as if
you export correct files you loose the information about the cell value.

As a simple example:

          <table:table-cell table:style-name="ce2"
office:value-type="boolean" office:boolean-value="4"
calcext:value-type="boolean">
            <text:p>TRUE</text:p>
          </table:table-cell>

Obviously if we replace the office:boolean-value with "true" as mandated by
the spec the file will not carry the information that the cell actually is
a 4.

I might have missed something fundamental here but after reading the spec I
think that there is a big flaw in the spec and we can't use the boolean
value-type for cells formatted as boolean. Can you please double check as I
surprised that such a big error in the spec has not been noticed for a long
time.

Regards,
Markus

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.