<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Writer document with tables lost data in cells (apparently) replacing with 0"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131025#c21">Comment # 21</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Writer document with tables lost data in cells (apparently) replacing with 0"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131025">bug 131025</a>
              from <span class="vcard"><a class="email" href="mailto:from+documentfoundation@jdlh.com" title="Jim DeLaHunt <from+documentfoundation@jdlh.com>"> <span class="fn">Jim DeLaHunt</span></a>
</span></b>
        <pre>For the record, I tried to make the repair process simpler by saving my
document as a flat XML document file (.fodt), and modifying the XML in that
file. Unfortunately, LibreOffice replaced the non-numeric cell contents by "0"
when saving to the flat XML document. It was not possible to repair after that. 

I also tried opening the document suffering from this problem, selecting the
non-numeric table cells displaying "0" values, selecting the Table… Number
Format… menu item, and setting the format to Text. That did not restore the
original non-numeric values to the cells. 

Thus, it appears that the only way to repair a document suffering from this
problem is to uncompress the .odt document package. 

Also, anyone trying to repair documents of theirs affected by this problem
might be interested in the following Q&A threads. I'm attempting to gather
ideas for the best way to perform each step of the repair.

How can I uncompress a LibreOffice document to get its XML internals, then make
a new document from them?
<a href="https://ask.libreoffice.org/en/question/282816/how-can-i-uncompress-a-libreoffice-document-to-get-its-xml-internals-then-make-a-new-document-from-them/">https://ask.libreoffice.org/en/question/282816/how-can-i-uncompress-a-libreoffice-document-to-get-its-xml-internals-then-make-a-new-document-from-them/</a>

How to use XSLT to modify a LibreOffice document at XML level?
<a href="https://ask.libreoffice.org/en/question/282817/how-to-use-xslt-to-modify-a-libreoffice-document-at-xml-level/">https://ask.libreoffice.org/en/question/282817/how-to-use-xslt-to-modify-a-libreoffice-document-at-xml-level/</a>

What XSLT copies an XML file, deleting one attribute and modifying the value of
another?
<a href="https://stackoverflow.com/questions/65318418/what-xslt-copies-an-xml-file-deleting-one-attribute-and-modifying-the-value-of/65318627">https://stackoverflow.com/questions/65318418/what-xslt-copies-an-xml-file-deleting-one-attribute-and-modifying-the-value-of/65318627</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>