Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Strict http://purl.oclc.org/ooxml/spreadsheetml/main tables fail validation #393
Strict namespace spreadsheetml tables throw an exception in OpenXmlValidator.
Trivial spreadsheet that triggers the problem: test.xlsx
Both URLs are straight from ECMA-376, Part 1, 12.3.21 Table Definition Part.
Additionally, both LibreOffice and Office Online are able to load the table definition, which arguably might not signify anything.
SpreadsheetDocument document = SpreadsheetDocument.Open("test.xlsx", false); OpenXmlValidator validator = new OpenXmlValidator(FileFormatVersions.Office2010); validator.Validate(document);
No exception should be thrown and no errors returned.
Strict http://purl.oclc.org/ooxml/spreadsheetml/main fails validation
Strict http://purl.oclc.org/ooxml/spreadsheetml/main tables fail validation
changed the title from
Jan 26, 2018
I've found that the file actually has mixed transitional/strict URLs. Only parts defined by the OPC may use the schemas.openxmlformats.org domain in a purely strict document.
Once united under purl.oclc.org where applicable, the error disappeared, thus closing the issue. I don't know if mixed documents should be valid but the idea seems hardly worth pursuing.
One remaining point is that the function should probably not throw exceptions when it returns errors.