<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Import from docx with variable in ASK field produces invalid ODF on resave"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107253">107253</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Import from docx with variable in ASK field produces invalid ODF on resave
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rb.henschel@t-online.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=132672" name="attach_132672" title="example with ASK and REF field to be converted">attachment 132672</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=132672&action=edit" title="example with ASK and REF field to be converted">[details]</a></span>
example with ASK and REF field to be converted

The attached document has a variable myVar, which was set by an ASK field and
has a REF field to show its value. (Besides that it has some info text to
remind me how to use fields in Word.)

Open the attached document.
Without any changes save it in odt-format.

The odt-Format has invalid parts:
The ASK field was translated to a <text:bookmark> element and a
<text:variable-input> element. The <text:variable-input> element was written
with attributes text:name, text:description, text:display, text:formula,
office:value-type, and office:string-value.
But the attributes text:formula and office:string-value are not allowed for a
<text:variable-input> element.

To get the same behavior as in Word neither office:string-value nor
text:formula is needed, but the content of the <text:variable-input> element is
the value of the variable. The ASK field does not show its content in Word. To
get this behavior, the attribute text:display="none" can be used.</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>