openpreserve / odf-validator

Open source Open Document Format (ODF) validation
http://odf.openpreservation.org/
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

DOC-8 without namespaces #182

Open maria-messerschmidt opened 2 weeks ago

maria-messerschmidt commented 2 weeks ago

We are getting the following error message for a converted ODS file which indicates some extended or invalid namespaces are used. But it doesn't list any, and I haven't found any.

APP-1: [INFO] Validating C:\Users\bxxxxxx\Desktop\FIKTIV.ods. APP-5: [INFO] DNA ODF Spreadsheets Preservation Specification Profile report for C:\Users\bxxxxxx\Desktop\FIKTIV.ods. DOC-2: [INFO] package OpenDocument version 1.3 detected. DOC-3: [INFO] mimetype OpenDocument MIMETYPE application/vnd.oasis.opendocument.spreadsheet detected DOC-8: [ERROR] content.xml This XML OpenDocument uses the following extended namespaces . POL_2: [ERROR] FIKTIV.ods Standard Compliance | Package does not comply with specification. The file MUST comply with the standard "OASIS Open Document Format for Office Applications (OpenDocument) v1.3". NOT VALID, 2 errors, 0 warnings and 2 info messages.

maria-messerschmidt commented 5 days ago

I found the offending namespace (or rather, lack of prefix). This seems to be a conversion issue when using LibreOffice converter where some attributes are added twice, but without prefix (and with an invalid value) the second time. Would it be possible to have the error message say "blank namespace" or "without namespace" or something similar in this scenario to avoid confusion?