an odtf file containing <text:p text:style-name="P6">Client & Teksten</text:p> gives an general I/O error Reported in 4.1.3.2 I see the same error in 3.4.6 and up. In 3.3.3 the file opens, but without content and the command line returns: LibO333rc1/libreoffice/basis3.3/share/xslt/odfflatxml/odfflatxmlimport.xsl: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor Error on line 296 column 41 SXXP0003: Error reported by XML parser: The entity name must immediately follow the '&' in the entity reference.
Created attachment 90536 [details] test file
Hi Cor, The attached XML file is invalid, since '&' considered as an escape character in XML. In order to store a text with '&' one should use '&'. What version of LO did create such files? Can it be reproduced with the latest versions? Otherwise I think we should close this one as NOTABUG. Note that we already have requests to support invalid Excel XML files (see Bug 38361, Bug 68742). Don't know if it makes sense to request the same for ODF.
Hi Maxim, (In reply to comment #2) > The attached XML file is invalid, since '&' considered as an escape > character in XML. In order to store a text with '&' one should use '&'. > What version of LO did create such files? Can it be reproduced with the > latest versions? Otherwise I think we should close this one as NOTABUG. Thanks for that explanation. Looking in 4.2.0, adding an '&' results in <text:span text:style-name="T6">& </text:span> I expect the file to come from an external tool. Will inform about that later. > Note that we already have requests to support invalid Excel XML files (see > Bug 38361, Bug 68742). Don't know if it makes sense to request the same for > ODF. Hmm, I would not suggest that.
Indeed, it's the external tool that pushes a plain '&' in the file. thanks again Maxim, Cor
.