[Libreoffice-bugs] [Bug 143600] Opening Excel XLS spreadsheet which contains XML fails with "General Error. General input/output error."
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 30 12:30:37 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=143600
--- Comment #12 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Eike Rathke from comment #11)
> The structure check knows that the
> <x:WorksheetOptions> element MUST appear nested in the <Worksheet> element.
> It does not check for unknown elements.
IMO it looks somewhat backwards. In context of XML parsing, any element that
appears where we expect it is a known element, and when it happens to appear in
other places, it should not be considered as "known but invalid", but it should
be considered unknown. When we find an unexpected element <Foo> under <Bar>,
why should we care that we know that there may be a <Foo> under <Baz>? E.g.,
there are same-name elements like w:sectPr both in w:body ("Document Final
Section Properties", ECMA-376 Part 1 17.6.17) and in w:pPr ("Section
Properties", 17.6.18). If a subsequent review of the standard adds same-name
element elsewhere, we must not fail (but of course we should ignore it there).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210730/1f1a1a5e/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list