This is an automated email from the ASF dual-hosted git repository.
jimjag pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 2c0928fc86 test/odf-validate: track the baseline error kinds and the
XML processing fixture
2c0928fc86 is described below
commit 2c0928fc86855eb408f3542a506ee816b6587f91
Author: Jim Jagielski <[email protected]>
AuthorDate: Thu Nov 5 05:36:40 2026 -0500
test/odf-validate: track the baseline error kinds and the XML processing
fixture
---
test/odf-validate/.gitignore | 1 -
test/odf-validate/README.md | 2 +
test/odf-validate/baseline/ext.kinds.json | 510 ++++++++++++++++++++
test/odf-validate/baseline/sep11/ext.kinds.json | 507 ++++++++++++++++++++
test/odf-validate/baseline/sep11/ext.kinds14.json | 516 +++++++++++++++++++++
test/odf-validate/baseline/sep11/strict.kinds.json | 480 +++++++++++++++++++
.../baseline/sep11/strict.kinds14.json | 489 +++++++++++++++++++
test/odf-validate/baseline/strict.kinds.json | 483 +++++++++++++++++++
test/odf-validate/baseline/v14.kinds.json | 1 +
test/odf-validate/baseline/x14.kinds.json | 153 ++++++
test/odf-validate/fixtures/t16e.py | 81 ++++
11 files changed, 3222 insertions(+), 1 deletion(-)
diff --git a/test/odf-validate/.gitignore b/test/odf-validate/.gitignore
index b03b2f819a..ebac80115c 100644
--- a/test/odf-validate/.gitignore
+++ b/test/odf-validate/.gitignore
@@ -1,7 +1,6 @@
app/
runs/
schema/
-baseline/
__pycache__/
fixtures/control/
fixtures/control-pkg/
diff --git a/test/odf-validate/README.md b/test/odf-validate/README.md
index 17433d7ffe..41bf9d3497 100644
--- a/test/odf-validate/README.md
+++ b/test/odf-validate/README.md
@@ -145,6 +145,8 @@ that ran passed.
without an export change (volatile Calc formulas, redline timestamps, the
`0238` loader order, the intermittent Basic library loss of `0048`). A new
entry needs a reason.
+- `baseline/` holds kinds for `ext`, `strict`, `x14` and an empty `v14`; there
is none for `v13` or `x13`, so a first gate
+ with those modes needs `--prev`.
- The first fixtures run has nothing to compare with: its mismatch pattern is
only recorded. By design, strict, ODF 1.0 and ODF 1.1 mode fail the 14
reload rows that need gradient or transparency fills.
diff --git a/test/odf-validate/baseline/ext.kinds.json
b/test/odf-validate/baseline/ext.kinds.json
new file mode 100644
index 0000000000..afbaecb595
--- /dev/null
+++ b/test/odf-validate/baseline/ext.kinds.json
@@ -0,0 +1,510 @@
+{
+ "attribute \"draw:fill\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:fill-color\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:opacity\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"form:xforms-list-source\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "attribute \"style:keep-together\" not allowed here": {
+ "errors": 78,
+ "packages": [
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt"
+ ]
+ },
+ "attribute \"style:layout-grid-snap-to-characters\" not allowed here": {
+ "errors": 92,
+ "packages": [
+ "0050__OOoDocAnalysisWordDriver.odt",
+ "0053_Stripped_OOoDocAnalysisWordDriver.odt",
+ "0110_rsc.odt",
+ "0112_rscerror.odt",
+ "0114_rscinst.odt",
+ "0116_change.odt",
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0224_num-1.odt",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0230_test-review-brk.odt",
+ "0231_test-review-para.odt",
+ "0232_test-review-stack.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0247_test-page-format.odt",
+ "0248_fields.odt",
+ "0250_Footnote.odt",
+ "0251_Footnote.odt",
+ "0252_HeaderFooter.odt",
+ "0253_HeaderFooter.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0262_MultiWrapping1.odt",
+ "0263_Paragraph with footnote.odt",
+ "0264_Paragraph with footnote.odt",
+ "0265_Picture1.odt",
+ "0266_RedlineTest.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0269_runProperties.odt",
+ "0270_runProperties.odt",
+ "0271_StandardFontAlbertus.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt",
+ "0284_WordOLE.odt"
+ ]
+ },
+ "attribute \"text:enable-numbering\" not allowed here": {
+ "errors": 62,
+ "packages": [
+ "0039_imp1.odp",
+ "0103_TwoShapes.odp",
+ "0213_ImpressDoc.odp",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "character content of element \"meta:print-date\" invalid; must be an ISO
date and time": {
+ "errors": 14,
+ "packages": [
+ "0054_importexportofasciifiles.odg",
+ "0055_burger_factory.odt",
+ "0056_adapting_to_euroland.ods",
+ "0059_changing_appearance.odt",
+ "0060_inserting_bookmarks.odt",
+ "0061_replacing_text.odt",
+ "0062_using_regular_expressions.odt",
+ "0089_chinese.odt",
+ "0093_Iterator.odt",
+ "0094_JAJPIterator.odt",
+ "0107_ZHCNIterator.odt",
+ "0108_ZHTWIterator.odt",
+ "0209_chinese.odt",
+ "0211_Iterator.odt"
+ ]
+ },
+ "element \"chart:symbol-image\" missing required attribute \"xlink:href\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chart:symbol-image\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chartooo:coordinate-region\" not allowed here": {
+ "errors": 19,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "element \"chartooo:date-scale\" not allowed here": {
+ "errors": 5,
+ "packages": [
+ "0039_imp1.odp",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "element \"draw:connector\" missing required attribute \"svg:viewBox\"": {
+ "errors": 58,
+ "packages": [
+ "0197_drawing_layer_UNO_objects.odg",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"draw:polyline\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"meta:auto-reload\" missing required attribute \"xlink:type\"": {
+ "errors": 1,
+ "packages": [
+ "0194_TEST.odt"
+ ]
+ },
+ "element \"office:change-info\" incomplete; missing required element
\"dc:creator\"": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"office:document-content\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"office:document-styles\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"style:graphic-properties\" not allowed here": {
+ "errors": 279,
+ "packages": [
+ "0004_soffice.odp",
+ "0038_Calc_6.ods",
+ "0039_imp1.odp",
+ "0045_readmeConverter.odt",
+ "0048__OOoDocAnalysisExcelDriver.ods",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0051_Stripped_OOoDocAnalysisExcelDriver.ods",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0065_FirstStepsBasic.odt",
+ "0067_AddInChart.ods",
+ "0070_SimplePresentation.odp",
+ "0071_ProgrammaticScriptAssignment.odt",
+ "0082_ToDo.ods",
+ "0088_calcshapes.ods",
+ "0101_SwXTextEmbeddedObject.odt",
+ "0103_TwoShapes.odp",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0133_imagecontrols.ods",
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp",
+ "0194_TEST.odt",
+ "0197_drawing_layer_UNO_objects.odg",
+ "0204_SwXTextEmbeddedObject.odt",
+ "0212_CalcDoc.ods",
+ "0213_ImpressDoc.odp",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods",
+ "0416_OpenDocumentSignatures-TestIntegration.odt",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"table:dde-link\" incomplete; missing required element
\"table:table\"": {
+ "errors": 2,
+ "packages": [
+ "0042_Calc_Link.ods",
+ "0087_Calc_Link.ods"
+ ]
+ },
+ "element \"table:table-columns\" incomplete; missing required element
\"table:table-column\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"table:table-rows\" incomplete; missing required element
\"table:table-row\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"text:a\" missing required attribute \"xlink:type\"": {
+ "errors": 5,
+ "packages": [
+ "0082_ToDo.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "element \"text:insertion\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"text:p\" not allowed here": {
+ "errors": 22,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods"
+ ]
+ },
+ "element \"text:section-source\" missing required attribute \"xlink:type\"": {
+ "errors": 2,
+ "packages": [
+ "0043_Writer_link.odt",
+ "0104_Writer_link.odt"
+ ]
+ },
+ "found attribute \"chartooo:axis-type\", but no attributes allowed here": {
+ "errors": 18,
+ "packages": [
+ "0039_imp1.odp",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "found attribute \"office:chg-author\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "found attribute \"office:chg-date-time\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "value of attribute \"draw:opacity\" is invalid": {
+ "errors": 6,
+ "packages": [
+ "0083_StarOffice_Delphi.odt",
+ "0091_filter.odt",
+ "0210_filter.odt",
+ "0342_a_animatedgif.odt",
+ "0404_image01.odt"
+ ]
+ },
+ "value of attribute \"fo:font-size\" is invalid": {
+ "errors": 2,
+ "packages": [
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-push-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-remain-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"office:boolean-value\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0378_c_boolean.ods"
+ ]
+ },
+ "value of attribute \"office:value\" is invalid": {
+ "errors": 199,
+ "packages": [
+ "0034_sickness.odt",
+ "0035_simple_validation.odt",
+ "0036_vacationrequest.odt",
+ "0037_xforms-ubl.odt",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0055_burger_factory.odt",
+ "0088_calcshapes.ods",
+ "0096_RunnerStart.odt",
+ "0099_sForm.odt",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0121_AutoFilter.ods",
+ "0123_CalcFont.ods",
+ "0124_CalcZoom.ods",
+ "0128_FinancialFuncTests.ods",
+ "0129_format.ods",
+ "0130_MiscOperatorTests.ods",
+ "0131_MiscRangeTests.ods",
+ "0133_imagecontrols.ods",
+ "0134_keyword.ods",
+ "0137_PageBreaks.ods",
+ "0139_range-4.ods",
+ "0140_Ranges-2.ods",
+ "0141_Ranges-3.ods",
+ "0142_Ranges.ods",
+ "0144_Shapes.ods",
+ "0147_Template.ods",
+ "0148_TestAddress.ods",
+ "0149_TestCalc_Rangetest.ods",
+ "0150_TestCalc_Rangetest2.ods",
+ "0151_TestIntersection.ods",
+ "0152_TestUnion.ods",
+ "0153_VariantTest.ods",
+ "0154_Window.ods",
+ "0155_window2.ods",
+ "0157_AutoFilter.ods",
+ "0159_CalcFont.ods",
+ "0163_format.ods",
+ "0164_MiscRangeTests.ods",
+ "0165_PageBreaks.ods",
+ "0166_pagesetup.ods",
+ "0168_range-4.ods",
+ "0169_Ranges-2.ods",
+ "0170_Ranges-3.ods",
+ "0171_Ranges.ods",
+ "0173_Shapes.ods",
+ "0176_Template.ods",
+ "0177_TestAddress.ods",
+ "0178_TestCalc_Rangetest.ods",
+ "0179_TestCalc_Rangetest2.ods",
+ "0180_TestIntersection.ods",
+ "0181_TestUnion.ods",
+ "0182_Window.ods",
+ "0183_window2.ods",
+ "0203_sForm.odt"
+ ]
+ },
+ "value of attribute \"office:version\" is invalid": {
+ "errors": 8,
+ "packages": [
+ "0442_invalid_ooo2_x_doc1.odt",
+ "0444_invalid_ooo2_x_macro1.odt",
+ "0445_invalid_ooo2_x_macro2.odt",
+ "0446_invalid_ooo2_x_macro3.odt",
+ "0447_invalid_ooo2_x_macro4.odt",
+ "0458_valid_ooo2_x_doc_macro.odt",
+ "0459_valid_ooo2_x_doc_unsigned_macro.odt",
+ "0460_valid_ooo2_x_doc1.odt"
+ ]
+ },
+ "value of attribute \"table:number-columns-spanned\" is invalid": {
+ "errors": 29,
+ "packages": [
+ "0238_parentinvguid.odt",
+ "0241_table-styles.odt",
+ "0257_MergedTable_3_3.odt"
+ ]
+ },
+ "value of attribute \"text:anchor-page-number\" is invalid": {
+ "errors": 23,
+ "packages": [
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt"
+ ]
+ },
+ "value of attribute \"text:reference-format\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0248_fields.odt"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/odf-validate/baseline/sep11/ext.kinds.json
b/test/odf-validate/baseline/sep11/ext.kinds.json
new file mode 100644
index 0000000000..dc33ca592a
--- /dev/null
+++ b/test/odf-validate/baseline/sep11/ext.kinds.json
@@ -0,0 +1,507 @@
+{
+ "attribute \"draw:fill\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:fill-color\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:opacity\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"form:xforms-list-source\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "attribute \"style:keep-together\" not allowed here": {
+ "errors": 78,
+ "packages": [
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt"
+ ]
+ },
+ "attribute \"style:layout-grid-snap-to-characters\" not allowed here": {
+ "errors": 92,
+ "packages": [
+ "0050__OOoDocAnalysisWordDriver.odt",
+ "0053_Stripped_OOoDocAnalysisWordDriver.odt",
+ "0110_rsc.odt",
+ "0112_rscerror.odt",
+ "0114_rscinst.odt",
+ "0116_change.odt",
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0224_num-1.odt",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0230_test-review-brk.odt",
+ "0231_test-review-para.odt",
+ "0232_test-review-stack.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0247_test-page-format.odt",
+ "0248_fields.odt",
+ "0250_Footnote.odt",
+ "0251_Footnote.odt",
+ "0252_HeaderFooter.odt",
+ "0253_HeaderFooter.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0262_MultiWrapping1.odt",
+ "0263_Paragraph with footnote.odt",
+ "0264_Paragraph with footnote.odt",
+ "0265_Picture1.odt",
+ "0266_RedlineTest.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0269_runProperties.odt",
+ "0270_runProperties.odt",
+ "0271_StandardFontAlbertus.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt",
+ "0284_WordOLE.odt"
+ ]
+ },
+ "attribute \"text:enable-numbering\" not allowed here": {
+ "errors": 62,
+ "packages": [
+ "0039_imp1.odp",
+ "0103_TwoShapes.odp",
+ "0213_ImpressDoc.odp",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "character content of element \"meta:print-date\" invalid; must be an ISO
date and time": {
+ "errors": 14,
+ "packages": [
+ "0054_importexportofasciifiles.odg",
+ "0055_burger_factory.odt",
+ "0056_adapting_to_euroland.ods",
+ "0059_changing_appearance.odt",
+ "0060_inserting_bookmarks.odt",
+ "0061_replacing_text.odt",
+ "0062_using_regular_expressions.odt",
+ "0089_chinese.odt",
+ "0093_Iterator.odt",
+ "0094_JAJPIterator.odt",
+ "0107_ZHCNIterator.odt",
+ "0108_ZHTWIterator.odt",
+ "0209_chinese.odt",
+ "0211_Iterator.odt"
+ ]
+ },
+ "element \"chart:symbol-image\" missing required attribute \"xlink:href\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chart:symbol-image\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chartooo:coordinate-region\" not allowed here": {
+ "errors": 19,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "element \"chartooo:date-scale\" not allowed here": {
+ "errors": 5,
+ "packages": [
+ "0039_imp1.odp",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "element \"draw:connector\" missing required attribute \"svg:viewBox\"": {
+ "errors": 58,
+ "packages": [
+ "0197_drawing_layer_UNO_objects.odg",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"draw:polyline\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"meta:auto-reload\" missing required attribute \"xlink:type\"": {
+ "errors": 1,
+ "packages": [
+ "0194_TEST.odt"
+ ]
+ },
+ "element \"office:change-info\" incomplete; missing required element
\"dc:creator\"": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"office:document-content\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"office:document-styles\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"style:graphic-properties\" not allowed here": {
+ "errors": 279,
+ "packages": [
+ "0004_soffice.odp",
+ "0038_Calc_6.ods",
+ "0039_imp1.odp",
+ "0045_readmeConverter.odt",
+ "0048__OOoDocAnalysisExcelDriver.ods",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0051_Stripped_OOoDocAnalysisExcelDriver.ods",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0065_FirstStepsBasic.odt",
+ "0067_AddInChart.ods",
+ "0070_SimplePresentation.odp",
+ "0071_ProgrammaticScriptAssignment.odt",
+ "0082_ToDo.ods",
+ "0088_calcshapes.ods",
+ "0101_SwXTextEmbeddedObject.odt",
+ "0103_TwoShapes.odp",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0133_imagecontrols.ods",
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp",
+ "0194_TEST.odt",
+ "0197_drawing_layer_UNO_objects.odg",
+ "0204_SwXTextEmbeddedObject.odt",
+ "0212_CalcDoc.ods",
+ "0213_ImpressDoc.odp",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods",
+ "0416_OpenDocumentSignatures-TestIntegration.odt",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"table:dde-link\" incomplete; missing required element
\"table:table\"": {
+ "errors": 2,
+ "packages": [
+ "0042_Calc_Link.ods",
+ "0087_Calc_Link.ods"
+ ]
+ },
+ "element \"table:table-columns\" incomplete; missing required element
\"table:table-column\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"table:table-rows\" incomplete; missing required element
\"table:table-row\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"text:a\" missing required attribute \"xlink:type\"": {
+ "errors": 5,
+ "packages": [
+ "0082_ToDo.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "element \"text:insertion\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"text:p\" not allowed here": {
+ "errors": 22,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods"
+ ]
+ },
+ "element \"text:section-source\" missing required attribute \"xlink:type\"": {
+ "errors": 2,
+ "packages": [
+ "0043_Writer_link.odt",
+ "0104_Writer_link.odt"
+ ]
+ },
+ "found attribute \"chartooo:axis-type\", but no attributes allowed here": {
+ "errors": 18,
+ "packages": [
+ "0039_imp1.odp",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "found attribute \"office:chg-author\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "found attribute \"office:chg-date-time\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "value of attribute \"draw:opacity\" is invalid": {
+ "errors": 6,
+ "packages": [
+ "0083_StarOffice_Delphi.odt",
+ "0091_filter.odt",
+ "0210_filter.odt",
+ "0342_a_animatedgif.odt",
+ "0404_image01.odt"
+ ]
+ },
+ "value of attribute \"fo:font-size\" is invalid": {
+ "errors": 2,
+ "packages": [
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-push-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-remain-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"office:boolean-value\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0378_c_boolean.ods"
+ ]
+ },
+ "value of attribute \"office:value\" is invalid": {
+ "errors": 199,
+ "packages": [
+ "0034_sickness.odt",
+ "0035_simple_validation.odt",
+ "0036_vacationrequest.odt",
+ "0037_xforms-ubl.odt",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0055_burger_factory.odt",
+ "0088_calcshapes.ods",
+ "0096_RunnerStart.odt",
+ "0099_sForm.odt",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0121_AutoFilter.ods",
+ "0123_CalcFont.ods",
+ "0124_CalcZoom.ods",
+ "0128_FinancialFuncTests.ods",
+ "0129_format.ods",
+ "0130_MiscOperatorTests.ods",
+ "0131_MiscRangeTests.ods",
+ "0133_imagecontrols.ods",
+ "0134_keyword.ods",
+ "0137_PageBreaks.ods",
+ "0139_range-4.ods",
+ "0140_Ranges-2.ods",
+ "0141_Ranges-3.ods",
+ "0142_Ranges.ods",
+ "0144_Shapes.ods",
+ "0147_Template.ods",
+ "0148_TestAddress.ods",
+ "0149_TestCalc_Rangetest.ods",
+ "0150_TestCalc_Rangetest2.ods",
+ "0151_TestIntersection.ods",
+ "0152_TestUnion.ods",
+ "0153_VariantTest.ods",
+ "0154_Window.ods",
+ "0155_window2.ods",
+ "0157_AutoFilter.ods",
+ "0159_CalcFont.ods",
+ "0163_format.ods",
+ "0164_MiscRangeTests.ods",
+ "0165_PageBreaks.ods",
+ "0166_pagesetup.ods",
+ "0168_range-4.ods",
+ "0169_Ranges-2.ods",
+ "0170_Ranges-3.ods",
+ "0171_Ranges.ods",
+ "0173_Shapes.ods",
+ "0176_Template.ods",
+ "0177_TestAddress.ods",
+ "0178_TestCalc_Rangetest.ods",
+ "0179_TestCalc_Rangetest2.ods",
+ "0180_TestIntersection.ods",
+ "0181_TestUnion.ods",
+ "0182_Window.ods",
+ "0183_window2.ods",
+ "0203_sForm.odt"
+ ]
+ },
+ "value of attribute \"office:version\" is invalid": {
+ "errors": 5,
+ "packages": [
+ "0442_invalid_ooo2_x_doc1.odt",
+ "0444_invalid_ooo2_x_macro1.odt",
+ "0445_invalid_ooo2_x_macro2.odt",
+ "0446_invalid_ooo2_x_macro3.odt",
+ "0447_invalid_ooo2_x_macro4.odt"
+ ]
+ },
+ "value of attribute \"table:number-columns-spanned\" is invalid": {
+ "errors": 29,
+ "packages": [
+ "0238_parentinvguid.odt",
+ "0241_table-styles.odt",
+ "0257_MergedTable_3_3.odt"
+ ]
+ },
+ "value of attribute \"text:anchor-page-number\" is invalid": {
+ "errors": 23,
+ "packages": [
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt"
+ ]
+ },
+ "value of attribute \"text:reference-format\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0248_fields.odt"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/odf-validate/baseline/sep11/ext.kinds14.json
b/test/odf-validate/baseline/sep11/ext.kinds14.json
new file mode 100644
index 0000000000..a4b251510d
--- /dev/null
+++ b/test/odf-validate/baseline/sep11/ext.kinds14.json
@@ -0,0 +1,516 @@
+{
+ "attribute \"draw:fill\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:fill-color\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:opacity\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"form:xforms-list-source\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "attribute \"style:keep-together\" not allowed here": {
+ "errors": 78,
+ "packages": [
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt"
+ ]
+ },
+ "attribute \"style:layout-grid-snap-to-characters\" not allowed here": {
+ "errors": 92,
+ "packages": [
+ "0050__OOoDocAnalysisWordDriver.odt",
+ "0053_Stripped_OOoDocAnalysisWordDriver.odt",
+ "0110_rsc.odt",
+ "0112_rscerror.odt",
+ "0114_rscinst.odt",
+ "0116_change.odt",
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0224_num-1.odt",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0230_test-review-brk.odt",
+ "0231_test-review-para.odt",
+ "0232_test-review-stack.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0247_test-page-format.odt",
+ "0248_fields.odt",
+ "0250_Footnote.odt",
+ "0251_Footnote.odt",
+ "0252_HeaderFooter.odt",
+ "0253_HeaderFooter.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0262_MultiWrapping1.odt",
+ "0263_Paragraph with footnote.odt",
+ "0264_Paragraph with footnote.odt",
+ "0265_Picture1.odt",
+ "0266_RedlineTest.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0269_runProperties.odt",
+ "0270_runProperties.odt",
+ "0271_StandardFontAlbertus.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt",
+ "0284_WordOLE.odt"
+ ]
+ },
+ "attribute \"table:cell-range-address\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods"
+ ]
+ },
+ "attribute \"text:enable-numbering\" not allowed here": {
+ "errors": 62,
+ "packages": [
+ "0039_imp1.odp",
+ "0103_TwoShapes.odp",
+ "0213_ImpressDoc.odp",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "character content of element \"meta:print-date\" invalid; must be an ISO
date and time": {
+ "errors": 14,
+ "packages": [
+ "0054_importexportofasciifiles.odg",
+ "0055_burger_factory.odt",
+ "0056_adapting_to_euroland.ods",
+ "0059_changing_appearance.odt",
+ "0060_inserting_bookmarks.odt",
+ "0061_replacing_text.odt",
+ "0062_using_regular_expressions.odt",
+ "0089_chinese.odt",
+ "0093_Iterator.odt",
+ "0094_JAJPIterator.odt",
+ "0107_ZHCNIterator.odt",
+ "0108_ZHTWIterator.odt",
+ "0209_chinese.odt",
+ "0211_Iterator.odt"
+ ]
+ },
+ "element \"chart:symbol-image\" missing required attribute \"xlink:href\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chart:symbol-image\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chartooo:coordinate-region\" not allowed here": {
+ "errors": 19,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "element \"chartooo:date-scale\" not allowed here": {
+ "errors": 5,
+ "packages": [
+ "0039_imp1.odp",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "element \"draw:connector\" missing required attribute \"svg:viewBox\"": {
+ "errors": 58,
+ "packages": [
+ "0197_drawing_layer_UNO_objects.odg",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"draw:handle\" missing required attributes
\"draw:handle-position-x\" and \"draw:handle-position-y\"": {
+ "errors": 3,
+ "packages": [
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0199_CheckFlies.odt"
+ ]
+ },
+ "element \"meta:auto-reload\" missing required attribute \"xlink:type\"": {
+ "errors": 1,
+ "packages": [
+ "0194_TEST.odt"
+ ]
+ },
+ "element \"office:change-info\" incomplete; missing required element
\"dc:creator\"": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"office:document-content\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"office:document-styles\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"style:graphic-properties\" not allowed here": {
+ "errors": 279,
+ "packages": [
+ "0004_soffice.odp",
+ "0038_Calc_6.ods",
+ "0039_imp1.odp",
+ "0045_readmeConverter.odt",
+ "0048__OOoDocAnalysisExcelDriver.ods",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0051_Stripped_OOoDocAnalysisExcelDriver.ods",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0065_FirstStepsBasic.odt",
+ "0067_AddInChart.ods",
+ "0070_SimplePresentation.odp",
+ "0071_ProgrammaticScriptAssignment.odt",
+ "0082_ToDo.ods",
+ "0088_calcshapes.ods",
+ "0101_SwXTextEmbeddedObject.odt",
+ "0103_TwoShapes.odp",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0133_imagecontrols.ods",
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp",
+ "0194_TEST.odt",
+ "0197_drawing_layer_UNO_objects.odg",
+ "0204_SwXTextEmbeddedObject.odt",
+ "0212_CalcDoc.ods",
+ "0213_ImpressDoc.odp",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods",
+ "0416_OpenDocumentSignatures-TestIntegration.odt",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"table:dde-link\" incomplete; missing required element
\"table:table\"": {
+ "errors": 2,
+ "packages": [
+ "0042_Calc_Link.ods",
+ "0087_Calc_Link.ods"
+ ]
+ },
+ "element \"table:table-columns\" incomplete; missing required element
\"table:table-column\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"table:table-rows\" incomplete; missing required element
\"table:table-row\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"text:a\" missing required attribute \"xlink:type\"": {
+ "errors": 5,
+ "packages": [
+ "0082_ToDo.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "element \"text:insertion\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"text:p\" not allowed here": {
+ "errors": 22,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods"
+ ]
+ },
+ "element \"text:section-source\" missing required attribute \"xlink:type\"": {
+ "errors": 2,
+ "packages": [
+ "0043_Writer_link.odt",
+ "0104_Writer_link.odt"
+ ]
+ },
+ "found attribute \"chartooo:axis-type\", but no attributes allowed here": {
+ "errors": 18,
+ "packages": [
+ "0039_imp1.odp",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp"
+ ]
+ },
+ "found attribute \"office:chg-author\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "found attribute \"office:chg-date-time\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "value of attribute \"draw:opacity\" is invalid": {
+ "errors": 6,
+ "packages": [
+ "0083_StarOffice_Delphi.odt",
+ "0091_filter.odt",
+ "0210_filter.odt",
+ "0342_a_animatedgif.odt",
+ "0404_image01.odt"
+ ]
+ },
+ "value of attribute \"fo:font-size\" is invalid": {
+ "errors": 2,
+ "packages": [
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-push-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-remain-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"office:boolean-value\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0378_c_boolean.ods"
+ ]
+ },
+ "value of attribute \"office:value\" is invalid": {
+ "errors": 199,
+ "packages": [
+ "0034_sickness.odt",
+ "0035_simple_validation.odt",
+ "0036_vacationrequest.odt",
+ "0037_xforms-ubl.odt",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0055_burger_factory.odt",
+ "0088_calcshapes.ods",
+ "0096_RunnerStart.odt",
+ "0099_sForm.odt",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0121_AutoFilter.ods",
+ "0123_CalcFont.ods",
+ "0124_CalcZoom.ods",
+ "0128_FinancialFuncTests.ods",
+ "0129_format.ods",
+ "0130_MiscOperatorTests.ods",
+ "0131_MiscRangeTests.ods",
+ "0133_imagecontrols.ods",
+ "0134_keyword.ods",
+ "0137_PageBreaks.ods",
+ "0139_range-4.ods",
+ "0140_Ranges-2.ods",
+ "0141_Ranges-3.ods",
+ "0142_Ranges.ods",
+ "0144_Shapes.ods",
+ "0147_Template.ods",
+ "0148_TestAddress.ods",
+ "0149_TestCalc_Rangetest.ods",
+ "0150_TestCalc_Rangetest2.ods",
+ "0151_TestIntersection.ods",
+ "0152_TestUnion.ods",
+ "0153_VariantTest.ods",
+ "0154_Window.ods",
+ "0155_window2.ods",
+ "0157_AutoFilter.ods",
+ "0159_CalcFont.ods",
+ "0163_format.ods",
+ "0164_MiscRangeTests.ods",
+ "0165_PageBreaks.ods",
+ "0166_pagesetup.ods",
+ "0168_range-4.ods",
+ "0169_Ranges-2.ods",
+ "0170_Ranges-3.ods",
+ "0171_Ranges.ods",
+ "0173_Shapes.ods",
+ "0176_Template.ods",
+ "0177_TestAddress.ods",
+ "0178_TestCalc_Rangetest.ods",
+ "0179_TestCalc_Rangetest2.ods",
+ "0180_TestIntersection.ods",
+ "0181_TestUnion.ods",
+ "0182_Window.ods",
+ "0183_window2.ods",
+ "0203_sForm.odt"
+ ]
+ },
+ "value of attribute \"office:version\" is invalid": {
+ "errors": 5,
+ "packages": [
+ "0442_invalid_ooo2_x_doc1.odt",
+ "0444_invalid_ooo2_x_macro1.odt",
+ "0445_invalid_ooo2_x_macro2.odt",
+ "0446_invalid_ooo2_x_macro3.odt",
+ "0447_invalid_ooo2_x_macro4.odt"
+ ]
+ },
+ "value of attribute \"table:number-columns-spanned\" is invalid": {
+ "errors": 29,
+ "packages": [
+ "0238_parentinvguid.odt",
+ "0241_table-styles.odt",
+ "0257_MergedTable_3_3.odt"
+ ]
+ },
+ "value of attribute \"text:anchor-page-number\" is invalid": {
+ "errors": 23,
+ "packages": [
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt"
+ ]
+ },
+ "value of attribute \"text:reference-format\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0248_fields.odt"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/odf-validate/baseline/sep11/strict.kinds.json
b/test/odf-validate/baseline/sep11/strict.kinds.json
new file mode 100644
index 0000000000..8e35c79173
--- /dev/null
+++ b/test/odf-validate/baseline/sep11/strict.kinds.json
@@ -0,0 +1,480 @@
+{
+ "attribute \"draw:fill\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:fill-color\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:opacity\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"form:xforms-list-source\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "attribute \"style:keep-together\" not allowed here": {
+ "errors": 78,
+ "packages": [
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt"
+ ]
+ },
+ "attribute \"style:layout-grid-snap-to-characters\" not allowed here": {
+ "errors": 92,
+ "packages": [
+ "0050__OOoDocAnalysisWordDriver.odt",
+ "0053_Stripped_OOoDocAnalysisWordDriver.odt",
+ "0110_rsc.odt",
+ "0112_rscerror.odt",
+ "0114_rscinst.odt",
+ "0116_change.odt",
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0224_num-1.odt",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0230_test-review-brk.odt",
+ "0231_test-review-para.odt",
+ "0232_test-review-stack.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0247_test-page-format.odt",
+ "0248_fields.odt",
+ "0250_Footnote.odt",
+ "0251_Footnote.odt",
+ "0252_HeaderFooter.odt",
+ "0253_HeaderFooter.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0262_MultiWrapping1.odt",
+ "0263_Paragraph with footnote.odt",
+ "0264_Paragraph with footnote.odt",
+ "0265_Picture1.odt",
+ "0266_RedlineTest.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0269_runProperties.odt",
+ "0270_runProperties.odt",
+ "0271_StandardFontAlbertus.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt",
+ "0284_WordOLE.odt"
+ ]
+ },
+ "attribute \"text:enable-numbering\" not allowed here": {
+ "errors": 62,
+ "packages": [
+ "0039_imp1.odp",
+ "0103_TwoShapes.odp",
+ "0213_ImpressDoc.odp",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "character content of element \"meta:print-date\" invalid; must be an ISO
date and time": {
+ "errors": 14,
+ "packages": [
+ "0054_importexportofasciifiles.odg",
+ "0055_burger_factory.odt",
+ "0056_adapting_to_euroland.ods",
+ "0059_changing_appearance.odt",
+ "0060_inserting_bookmarks.odt",
+ "0061_replacing_text.odt",
+ "0062_using_regular_expressions.odt",
+ "0089_chinese.odt",
+ "0093_Iterator.odt",
+ "0094_JAJPIterator.odt",
+ "0107_ZHCNIterator.odt",
+ "0108_ZHTWIterator.odt",
+ "0209_chinese.odt",
+ "0211_Iterator.odt"
+ ]
+ },
+ "element \"chart:symbol-image\" missing required attribute \"xlink:href\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chart:symbol-image\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"draw:connector\" missing required attribute \"svg:viewBox\"": {
+ "errors": 58,
+ "packages": [
+ "0197_drawing_layer_UNO_objects.odg",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"draw:polyline\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"meta:auto-reload\" missing required attribute \"xlink:type\"": {
+ "errors": 1,
+ "packages": [
+ "0194_TEST.odt"
+ ]
+ },
+ "element \"office:change-info\" incomplete; missing required element
\"dc:creator\"": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"office:document-content\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"office:document-styles\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"style:graphic-properties\" not allowed here": {
+ "errors": 279,
+ "packages": [
+ "0004_soffice.odp",
+ "0038_Calc_6.ods",
+ "0039_imp1.odp",
+ "0045_readmeConverter.odt",
+ "0048__OOoDocAnalysisExcelDriver.ods",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0051_Stripped_OOoDocAnalysisExcelDriver.ods",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0065_FirstStepsBasic.odt",
+ "0067_AddInChart.ods",
+ "0070_SimplePresentation.odp",
+ "0071_ProgrammaticScriptAssignment.odt",
+ "0082_ToDo.ods",
+ "0088_calcshapes.ods",
+ "0101_SwXTextEmbeddedObject.odt",
+ "0103_TwoShapes.odp",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0133_imagecontrols.ods",
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp",
+ "0194_TEST.odt",
+ "0197_drawing_layer_UNO_objects.odg",
+ "0204_SwXTextEmbeddedObject.odt",
+ "0212_CalcDoc.ods",
+ "0213_ImpressDoc.odp",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods",
+ "0416_OpenDocumentSignatures-TestIntegration.odt",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"table:dde-link\" incomplete; missing required element
\"table:table\"": {
+ "errors": 2,
+ "packages": [
+ "0042_Calc_Link.ods",
+ "0087_Calc_Link.ods"
+ ]
+ },
+ "element \"table:table-columns\" incomplete; missing required element
\"table:table-column\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"table:table-rows\" incomplete; missing required element
\"table:table-row\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"text:a\" missing required attribute \"xlink:type\"": {
+ "errors": 5,
+ "packages": [
+ "0082_ToDo.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "element \"text:insertion\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"text:p\" not allowed here": {
+ "errors": 22,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods"
+ ]
+ },
+ "element \"text:section-source\" missing required attribute \"xlink:type\"": {
+ "errors": 2,
+ "packages": [
+ "0043_Writer_link.odt",
+ "0104_Writer_link.odt"
+ ]
+ },
+ "found attribute \"office:chg-author\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "found attribute \"office:chg-date-time\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "value of attribute \"draw:opacity\" is invalid": {
+ "errors": 6,
+ "packages": [
+ "0083_StarOffice_Delphi.odt",
+ "0091_filter.odt",
+ "0210_filter.odt",
+ "0342_a_animatedgif.odt",
+ "0404_image01.odt"
+ ]
+ },
+ "value of attribute \"fo:font-size\" is invalid": {
+ "errors": 2,
+ "packages": [
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-push-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-remain-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"office:boolean-value\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0378_c_boolean.ods"
+ ]
+ },
+ "value of attribute \"office:value\" is invalid": {
+ "errors": 199,
+ "packages": [
+ "0034_sickness.odt",
+ "0035_simple_validation.odt",
+ "0036_vacationrequest.odt",
+ "0037_xforms-ubl.odt",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0055_burger_factory.odt",
+ "0088_calcshapes.ods",
+ "0096_RunnerStart.odt",
+ "0099_sForm.odt",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0121_AutoFilter.ods",
+ "0123_CalcFont.ods",
+ "0124_CalcZoom.ods",
+ "0128_FinancialFuncTests.ods",
+ "0129_format.ods",
+ "0130_MiscOperatorTests.ods",
+ "0131_MiscRangeTests.ods",
+ "0133_imagecontrols.ods",
+ "0134_keyword.ods",
+ "0137_PageBreaks.ods",
+ "0139_range-4.ods",
+ "0140_Ranges-2.ods",
+ "0141_Ranges-3.ods",
+ "0142_Ranges.ods",
+ "0144_Shapes.ods",
+ "0147_Template.ods",
+ "0148_TestAddress.ods",
+ "0149_TestCalc_Rangetest.ods",
+ "0150_TestCalc_Rangetest2.ods",
+ "0151_TestIntersection.ods",
+ "0152_TestUnion.ods",
+ "0153_VariantTest.ods",
+ "0154_Window.ods",
+ "0155_window2.ods",
+ "0157_AutoFilter.ods",
+ "0159_CalcFont.ods",
+ "0163_format.ods",
+ "0164_MiscRangeTests.ods",
+ "0165_PageBreaks.ods",
+ "0166_pagesetup.ods",
+ "0168_range-4.ods",
+ "0169_Ranges-2.ods",
+ "0170_Ranges-3.ods",
+ "0171_Ranges.ods",
+ "0173_Shapes.ods",
+ "0176_Template.ods",
+ "0177_TestAddress.ods",
+ "0178_TestCalc_Rangetest.ods",
+ "0179_TestCalc_Rangetest2.ods",
+ "0180_TestIntersection.ods",
+ "0181_TestUnion.ods",
+ "0182_Window.ods",
+ "0183_window2.ods",
+ "0203_sForm.odt"
+ ]
+ },
+ "value of attribute \"office:version\" is invalid": {
+ "errors": 5,
+ "packages": [
+ "0442_invalid_ooo2_x_doc1.odt",
+ "0444_invalid_ooo2_x_macro1.odt",
+ "0445_invalid_ooo2_x_macro2.odt",
+ "0446_invalid_ooo2_x_macro3.odt",
+ "0447_invalid_ooo2_x_macro4.odt"
+ ]
+ },
+ "value of attribute \"table:number-columns-spanned\" is invalid": {
+ "errors": 29,
+ "packages": [
+ "0238_parentinvguid.odt",
+ "0241_table-styles.odt",
+ "0257_MergedTable_3_3.odt"
+ ]
+ },
+ "value of attribute \"text:anchor-page-number\" is invalid": {
+ "errors": 23,
+ "packages": [
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt"
+ ]
+ },
+ "value of attribute \"text:reference-format\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0248_fields.odt"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/odf-validate/baseline/sep11/strict.kinds14.json
b/test/odf-validate/baseline/sep11/strict.kinds14.json
new file mode 100644
index 0000000000..e9bef7c6c3
--- /dev/null
+++ b/test/odf-validate/baseline/sep11/strict.kinds14.json
@@ -0,0 +1,489 @@
+{
+ "attribute \"draw:fill\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:fill-color\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:opacity\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"form:xforms-list-source\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "attribute \"style:keep-together\" not allowed here": {
+ "errors": 78,
+ "packages": [
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt"
+ ]
+ },
+ "attribute \"style:layout-grid-snap-to-characters\" not allowed here": {
+ "errors": 92,
+ "packages": [
+ "0050__OOoDocAnalysisWordDriver.odt",
+ "0053_Stripped_OOoDocAnalysisWordDriver.odt",
+ "0110_rsc.odt",
+ "0112_rscerror.odt",
+ "0114_rscinst.odt",
+ "0116_change.odt",
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0224_num-1.odt",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0230_test-review-brk.odt",
+ "0231_test-review-para.odt",
+ "0232_test-review-stack.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0247_test-page-format.odt",
+ "0248_fields.odt",
+ "0250_Footnote.odt",
+ "0251_Footnote.odt",
+ "0252_HeaderFooter.odt",
+ "0253_HeaderFooter.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0262_MultiWrapping1.odt",
+ "0263_Paragraph with footnote.odt",
+ "0264_Paragraph with footnote.odt",
+ "0265_Picture1.odt",
+ "0266_RedlineTest.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0269_runProperties.odt",
+ "0270_runProperties.odt",
+ "0271_StandardFontAlbertus.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt",
+ "0284_WordOLE.odt"
+ ]
+ },
+ "attribute \"table:cell-range-address\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods"
+ ]
+ },
+ "attribute \"text:enable-numbering\" not allowed here": {
+ "errors": 62,
+ "packages": [
+ "0039_imp1.odp",
+ "0103_TwoShapes.odp",
+ "0213_ImpressDoc.odp",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "character content of element \"meta:print-date\" invalid; must be an ISO
date and time": {
+ "errors": 14,
+ "packages": [
+ "0054_importexportofasciifiles.odg",
+ "0055_burger_factory.odt",
+ "0056_adapting_to_euroland.ods",
+ "0059_changing_appearance.odt",
+ "0060_inserting_bookmarks.odt",
+ "0061_replacing_text.odt",
+ "0062_using_regular_expressions.odt",
+ "0089_chinese.odt",
+ "0093_Iterator.odt",
+ "0094_JAJPIterator.odt",
+ "0107_ZHCNIterator.odt",
+ "0108_ZHTWIterator.odt",
+ "0209_chinese.odt",
+ "0211_Iterator.odt"
+ ]
+ },
+ "element \"chart:symbol-image\" missing required attribute \"xlink:href\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chart:symbol-image\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"draw:connector\" missing required attribute \"svg:viewBox\"": {
+ "errors": 58,
+ "packages": [
+ "0197_drawing_layer_UNO_objects.odg",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"draw:handle\" missing required attributes
\"draw:handle-position-x\" and \"draw:handle-position-y\"": {
+ "errors": 3,
+ "packages": [
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0199_CheckFlies.odt"
+ ]
+ },
+ "element \"meta:auto-reload\" missing required attribute \"xlink:type\"": {
+ "errors": 1,
+ "packages": [
+ "0194_TEST.odt"
+ ]
+ },
+ "element \"office:change-info\" incomplete; missing required element
\"dc:creator\"": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"office:document-content\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"office:document-styles\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"style:graphic-properties\" not allowed here": {
+ "errors": 279,
+ "packages": [
+ "0004_soffice.odp",
+ "0038_Calc_6.ods",
+ "0039_imp1.odp",
+ "0045_readmeConverter.odt",
+ "0048__OOoDocAnalysisExcelDriver.ods",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0051_Stripped_OOoDocAnalysisExcelDriver.ods",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0065_FirstStepsBasic.odt",
+ "0067_AddInChart.ods",
+ "0070_SimplePresentation.odp",
+ "0071_ProgrammaticScriptAssignment.odt",
+ "0082_ToDo.ods",
+ "0088_calcshapes.ods",
+ "0101_SwXTextEmbeddedObject.odt",
+ "0103_TwoShapes.odp",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0133_imagecontrols.ods",
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp",
+ "0194_TEST.odt",
+ "0197_drawing_layer_UNO_objects.odg",
+ "0204_SwXTextEmbeddedObject.odt",
+ "0212_CalcDoc.ods",
+ "0213_ImpressDoc.odp",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods",
+ "0416_OpenDocumentSignatures-TestIntegration.odt",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"table:dde-link\" incomplete; missing required element
\"table:table\"": {
+ "errors": 2,
+ "packages": [
+ "0042_Calc_Link.ods",
+ "0087_Calc_Link.ods"
+ ]
+ },
+ "element \"table:table-columns\" incomplete; missing required element
\"table:table-column\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"table:table-rows\" incomplete; missing required element
\"table:table-row\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"text:a\" missing required attribute \"xlink:type\"": {
+ "errors": 5,
+ "packages": [
+ "0082_ToDo.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "element \"text:insertion\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"text:p\" not allowed here": {
+ "errors": 22,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods"
+ ]
+ },
+ "element \"text:section-source\" missing required attribute \"xlink:type\"": {
+ "errors": 2,
+ "packages": [
+ "0043_Writer_link.odt",
+ "0104_Writer_link.odt"
+ ]
+ },
+ "found attribute \"office:chg-author\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "found attribute \"office:chg-date-time\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "value of attribute \"draw:opacity\" is invalid": {
+ "errors": 6,
+ "packages": [
+ "0083_StarOffice_Delphi.odt",
+ "0091_filter.odt",
+ "0210_filter.odt",
+ "0342_a_animatedgif.odt",
+ "0404_image01.odt"
+ ]
+ },
+ "value of attribute \"fo:font-size\" is invalid": {
+ "errors": 2,
+ "packages": [
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-push-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-remain-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"office:boolean-value\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0378_c_boolean.ods"
+ ]
+ },
+ "value of attribute \"office:value\" is invalid": {
+ "errors": 199,
+ "packages": [
+ "0034_sickness.odt",
+ "0035_simple_validation.odt",
+ "0036_vacationrequest.odt",
+ "0037_xforms-ubl.odt",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0055_burger_factory.odt",
+ "0088_calcshapes.ods",
+ "0096_RunnerStart.odt",
+ "0099_sForm.odt",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0121_AutoFilter.ods",
+ "0123_CalcFont.ods",
+ "0124_CalcZoom.ods",
+ "0128_FinancialFuncTests.ods",
+ "0129_format.ods",
+ "0130_MiscOperatorTests.ods",
+ "0131_MiscRangeTests.ods",
+ "0133_imagecontrols.ods",
+ "0134_keyword.ods",
+ "0137_PageBreaks.ods",
+ "0139_range-4.ods",
+ "0140_Ranges-2.ods",
+ "0141_Ranges-3.ods",
+ "0142_Ranges.ods",
+ "0144_Shapes.ods",
+ "0147_Template.ods",
+ "0148_TestAddress.ods",
+ "0149_TestCalc_Rangetest.ods",
+ "0150_TestCalc_Rangetest2.ods",
+ "0151_TestIntersection.ods",
+ "0152_TestUnion.ods",
+ "0153_VariantTest.ods",
+ "0154_Window.ods",
+ "0155_window2.ods",
+ "0157_AutoFilter.ods",
+ "0159_CalcFont.ods",
+ "0163_format.ods",
+ "0164_MiscRangeTests.ods",
+ "0165_PageBreaks.ods",
+ "0166_pagesetup.ods",
+ "0168_range-4.ods",
+ "0169_Ranges-2.ods",
+ "0170_Ranges-3.ods",
+ "0171_Ranges.ods",
+ "0173_Shapes.ods",
+ "0176_Template.ods",
+ "0177_TestAddress.ods",
+ "0178_TestCalc_Rangetest.ods",
+ "0179_TestCalc_Rangetest2.ods",
+ "0180_TestIntersection.ods",
+ "0181_TestUnion.ods",
+ "0182_Window.ods",
+ "0183_window2.ods",
+ "0203_sForm.odt"
+ ]
+ },
+ "value of attribute \"office:version\" is invalid": {
+ "errors": 5,
+ "packages": [
+ "0442_invalid_ooo2_x_doc1.odt",
+ "0444_invalid_ooo2_x_macro1.odt",
+ "0445_invalid_ooo2_x_macro2.odt",
+ "0446_invalid_ooo2_x_macro3.odt",
+ "0447_invalid_ooo2_x_macro4.odt"
+ ]
+ },
+ "value of attribute \"table:number-columns-spanned\" is invalid": {
+ "errors": 29,
+ "packages": [
+ "0238_parentinvguid.odt",
+ "0241_table-styles.odt",
+ "0257_MergedTable_3_3.odt"
+ ]
+ },
+ "value of attribute \"text:anchor-page-number\" is invalid": {
+ "errors": 23,
+ "packages": [
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt"
+ ]
+ },
+ "value of attribute \"text:reference-format\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0248_fields.odt"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/odf-validate/baseline/strict.kinds.json
b/test/odf-validate/baseline/strict.kinds.json
new file mode 100644
index 0000000000..9670012969
--- /dev/null
+++ b/test/odf-validate/baseline/strict.kinds.json
@@ -0,0 +1,483 @@
+{
+ "attribute \"draw:fill\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:fill-color\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"draw:opacity\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0055_burger_factory.odt",
+ "0248_fields.odt"
+ ]
+ },
+ "attribute \"form:xforms-list-source\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "attribute \"style:keep-together\" not allowed here": {
+ "errors": 78,
+ "packages": [
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt"
+ ]
+ },
+ "attribute \"style:layout-grid-snap-to-characters\" not allowed here": {
+ "errors": 92,
+ "packages": [
+ "0050__OOoDocAnalysisWordDriver.odt",
+ "0053_Stripped_OOoDocAnalysisWordDriver.odt",
+ "0110_rsc.odt",
+ "0112_rscerror.odt",
+ "0114_rscinst.odt",
+ "0116_change.odt",
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0224_num-1.odt",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0230_test-review-brk.odt",
+ "0231_test-review-para.odt",
+ "0232_test-review-stack.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0247_test-page-format.odt",
+ "0248_fields.odt",
+ "0250_Footnote.odt",
+ "0251_Footnote.odt",
+ "0252_HeaderFooter.odt",
+ "0253_HeaderFooter.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0262_MultiWrapping1.odt",
+ "0263_Paragraph with footnote.odt",
+ "0264_Paragraph with footnote.odt",
+ "0265_Picture1.odt",
+ "0266_RedlineTest.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0269_runProperties.odt",
+ "0270_runProperties.odt",
+ "0271_StandardFontAlbertus.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt",
+ "0284_WordOLE.odt"
+ ]
+ },
+ "attribute \"text:enable-numbering\" not allowed here": {
+ "errors": 62,
+ "packages": [
+ "0039_imp1.odp",
+ "0103_TwoShapes.odp",
+ "0213_ImpressDoc.odp",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "character content of element \"meta:print-date\" invalid; must be an ISO
date and time": {
+ "errors": 14,
+ "packages": [
+ "0054_importexportofasciifiles.odg",
+ "0055_burger_factory.odt",
+ "0056_adapting_to_euroland.ods",
+ "0059_changing_appearance.odt",
+ "0060_inserting_bookmarks.odt",
+ "0061_replacing_text.odt",
+ "0062_using_regular_expressions.odt",
+ "0089_chinese.odt",
+ "0093_Iterator.odt",
+ "0094_JAJPIterator.odt",
+ "0107_ZHCNIterator.odt",
+ "0108_ZHTWIterator.odt",
+ "0209_chinese.odt",
+ "0211_Iterator.odt"
+ ]
+ },
+ "element \"chart:symbol-image\" missing required attribute \"xlink:href\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"chart:symbol-image\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"draw:connector\" missing required attribute \"svg:viewBox\"": {
+ "errors": 58,
+ "packages": [
+ "0197_drawing_layer_UNO_objects.odg",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"draw:polyline\" not allowed here": {
+ "errors": 2,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"meta:auto-reload\" missing required attribute \"xlink:type\"": {
+ "errors": 1,
+ "packages": [
+ "0194_TEST.odt"
+ ]
+ },
+ "element \"office:change-info\" incomplete; missing required element
\"dc:creator\"": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"office:document-content\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"office:document-styles\" missing required attribute
\"office:version\"": {
+ "errors": 1,
+ "packages": [
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"style:graphic-properties\" not allowed here": {
+ "errors": 279,
+ "packages": [
+ "0004_soffice.odp",
+ "0038_Calc_6.ods",
+ "0039_imp1.odp",
+ "0045_readmeConverter.odt",
+ "0048__OOoDocAnalysisExcelDriver.ods",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0051_Stripped_OOoDocAnalysisExcelDriver.ods",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0065_FirstStepsBasic.odt",
+ "0067_AddInChart.ods",
+ "0070_SimplePresentation.odp",
+ "0071_ProgrammaticScriptAssignment.odt",
+ "0082_ToDo.ods",
+ "0088_calcshapes.ods",
+ "0101_SwXTextEmbeddedObject.odt",
+ "0103_TwoShapes.odp",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0133_imagecontrols.ods",
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp",
+ "0194_TEST.odt",
+ "0197_drawing_layer_UNO_objects.odg",
+ "0204_SwXTextEmbeddedObject.odt",
+ "0212_CalcDoc.ods",
+ "0213_ImpressDoc.odp",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods",
+ "0416_OpenDocumentSignatures-TestIntegration.odt",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "element \"table:dde-link\" incomplete; missing required element
\"table:table\"": {
+ "errors": 2,
+ "packages": [
+ "0042_Calc_Link.ods",
+ "0087_Calc_Link.ods"
+ ]
+ },
+ "element \"table:table-columns\" incomplete; missing required element
\"table:table-column\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"table:table-rows\" incomplete; missing required element
\"table:table-row\"": {
+ "errors": 1,
+ "packages": [
+ "0067_AddInChart.ods"
+ ]
+ },
+ "element \"text:a\" missing required attribute \"xlink:type\"": {
+ "errors": 5,
+ "packages": [
+ "0082_ToDo.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "element \"text:insertion\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "element \"text:p\" not allowed here": {
+ "errors": 22,
+ "packages": [
+ "0039_imp1.odp",
+ "0067_AddInChart.ods",
+ "0102_TransparencyCalcChart.ods",
+ "0187_ExampleSpreadSheetLatest.ods",
+ "0213_ImpressDoc.odp",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods"
+ ]
+ },
+ "element \"text:section-source\" missing required attribute \"xlink:type\"": {
+ "errors": 2,
+ "packages": [
+ "0043_Writer_link.odt",
+ "0104_Writer_link.odt"
+ ]
+ },
+ "found attribute \"office:chg-author\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "found attribute \"office:chg-date-time\", but no attributes allowed here": {
+ "errors": 1,
+ "packages": [
+ "0232_test-review-stack.odt"
+ ]
+ },
+ "value of attribute \"draw:opacity\" is invalid": {
+ "errors": 6,
+ "packages": [
+ "0083_StarOffice_Delphi.odt",
+ "0091_filter.odt",
+ "0210_filter.odt",
+ "0342_a_animatedgif.odt",
+ "0404_image01.odt"
+ ]
+ },
+ "value of attribute \"fo:font-size\" is invalid": {
+ "errors": 2,
+ "packages": [
+ "0191_testinput.odp",
+ "0192_testinput.odp"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-push-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"fo:hyphenation-remain-char-count\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "value of attribute \"office:boolean-value\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0378_c_boolean.ods"
+ ]
+ },
+ "value of attribute \"office:value\" is invalid": {
+ "errors": 199,
+ "packages": [
+ "0034_sickness.odt",
+ "0035_simple_validation.odt",
+ "0036_vacationrequest.odt",
+ "0037_xforms-ubl.odt",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0055_burger_factory.odt",
+ "0088_calcshapes.ods",
+ "0096_RunnerStart.odt",
+ "0099_sForm.odt",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0121_AutoFilter.ods",
+ "0123_CalcFont.ods",
+ "0124_CalcZoom.ods",
+ "0128_FinancialFuncTests.ods",
+ "0129_format.ods",
+ "0130_MiscOperatorTests.ods",
+ "0131_MiscRangeTests.ods",
+ "0133_imagecontrols.ods",
+ "0134_keyword.ods",
+ "0137_PageBreaks.ods",
+ "0139_range-4.ods",
+ "0140_Ranges-2.ods",
+ "0141_Ranges-3.ods",
+ "0142_Ranges.ods",
+ "0144_Shapes.ods",
+ "0147_Template.ods",
+ "0148_TestAddress.ods",
+ "0149_TestCalc_Rangetest.ods",
+ "0150_TestCalc_Rangetest2.ods",
+ "0151_TestIntersection.ods",
+ "0152_TestUnion.ods",
+ "0153_VariantTest.ods",
+ "0154_Window.ods",
+ "0155_window2.ods",
+ "0157_AutoFilter.ods",
+ "0159_CalcFont.ods",
+ "0163_format.ods",
+ "0164_MiscRangeTests.ods",
+ "0165_PageBreaks.ods",
+ "0166_pagesetup.ods",
+ "0168_range-4.ods",
+ "0169_Ranges-2.ods",
+ "0170_Ranges-3.ods",
+ "0171_Ranges.ods",
+ "0173_Shapes.ods",
+ "0176_Template.ods",
+ "0177_TestAddress.ods",
+ "0178_TestCalc_Rangetest.ods",
+ "0179_TestCalc_Rangetest2.ods",
+ "0180_TestIntersection.ods",
+ "0181_TestUnion.ods",
+ "0182_Window.ods",
+ "0183_window2.ods",
+ "0203_sForm.odt"
+ ]
+ },
+ "value of attribute \"office:version\" is invalid": {
+ "errors": 8,
+ "packages": [
+ "0442_invalid_ooo2_x_doc1.odt",
+ "0444_invalid_ooo2_x_macro1.odt",
+ "0445_invalid_ooo2_x_macro2.odt",
+ "0446_invalid_ooo2_x_macro3.odt",
+ "0447_invalid_ooo2_x_macro4.odt",
+ "0458_valid_ooo2_x_doc_macro.odt",
+ "0459_valid_ooo2_x_doc_unsigned_macro.odt",
+ "0460_valid_ooo2_x_doc1.odt"
+ ]
+ },
+ "value of attribute \"table:number-columns-spanned\" is invalid": {
+ "errors": 29,
+ "packages": [
+ "0238_parentinvguid.odt",
+ "0241_table-styles.odt",
+ "0257_MergedTable_3_3.odt"
+ ]
+ },
+ "value of attribute \"text:anchor-page-number\" is invalid": {
+ "errors": 23,
+ "packages": [
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt"
+ ]
+ },
+ "value of attribute \"text:reference-format\" is invalid": {
+ "errors": 1,
+ "packages": [
+ "0248_fields.odt"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/odf-validate/baseline/v14.kinds.json
b/test/odf-validate/baseline/v14.kinds.json
new file mode 100644
index 0000000000..9e26dfeeb6
--- /dev/null
+++ b/test/odf-validate/baseline/v14.kinds.json
@@ -0,0 +1 @@
+{}
\ No newline at end of file
diff --git a/test/odf-validate/baseline/x14.kinds.json
b/test/odf-validate/baseline/x14.kinds.json
new file mode 100644
index 0000000000..4968ecf7e2
--- /dev/null
+++ b/test/odf-validate/baseline/x14.kinds.json
@@ -0,0 +1,153 @@
+{
+ "attribute \"form:xforms-list-source\" not allowed here": {
+ "errors": 1,
+ "packages": [
+ "0037_xforms-ubl.odt"
+ ]
+ },
+ "attribute \"style:layout-grid-snap-to-characters\" not allowed here": {
+ "errors": 92,
+ "packages": [
+ "0050__OOoDocAnalysisWordDriver.odt",
+ "0053_Stripped_OOoDocAnalysisWordDriver.odt",
+ "0110_rsc.odt",
+ "0112_rscerror.odt",
+ "0114_rscinst.odt",
+ "0116_change.odt",
+ "0215_Table5CellBorders.odt",
+ "0216_TableDifferentColumns.odt",
+ "0217_TablePreferredWidth.odt",
+ "0218_TableRowProperties.odt",
+ "0219_align1.odt",
+ "0220_Bookmark1.odt",
+ "0221_Bookmark1.odt",
+ "0222_bookmark2.odt",
+ "0223_CellAlignment.odt",
+ "0224_num-1.odt",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0230_test-review-brk.odt",
+ "0231_test-review-para.odt",
+ "0232_test-review-stack.odt",
+ "0233_nested-tables.odt",
+ "0234_nested-tables2.odt",
+ "0235_nested-tables3.odt",
+ "0236_nested-tables4.odt",
+ "0237_nested-tables5.odt",
+ "0238_parentinvguid.odt",
+ "0239_table in A1.odt",
+ "0240_Table in B2.odt",
+ "0241_table-styles.odt",
+ "0242_test-grid.odt",
+ "0243_test-paras.odt",
+ "0244_test-simple.odt",
+ "0245_two-tables.odt",
+ "0246_updatejpegprocessing.odt",
+ "0247_test-page-format.odt",
+ "0248_fields.odt",
+ "0250_Footnote.odt",
+ "0251_Footnote.odt",
+ "0252_HeaderFooter.odt",
+ "0253_HeaderFooter.odt",
+ "0254_IndentedTable.odt",
+ "0255_IndentedTable1.odt",
+ "0256_MergedTable_3_3.odt",
+ "0257_MergedTable_3_3.odt",
+ "0258_MergedTable.odt",
+ "0259_MergedTable.odt",
+ "0261_MultiMergedTable.odt",
+ "0262_MultiWrapping1.odt",
+ "0263_Paragraph with footnote.odt",
+ "0264_Paragraph with footnote.odt",
+ "0265_Picture1.odt",
+ "0266_RedlineTest.odt",
+ "0267_RowHeight.odt",
+ "0268_RowHeight.odt",
+ "0269_runProperties.odt",
+ "0270_runProperties.odt",
+ "0271_StandardFontAlbertus.odt",
+ "0272_table_4_4.odt",
+ "0273_table_4_4.odt",
+ "0274_table_style.odt",
+ "0275_Table5CellBorders.odt",
+ "0276_Table5CellBorders.odt",
+ "0277_TableDifferentColumns.odt",
+ "0278_TableDifferentColumns.odt",
+ "0279_TablePreferredWidth.odt",
+ "0280_TablePreferredWidth.odt",
+ "0281_TableRowProperties.odt",
+ "0282_TableRowProperties.odt",
+ "0283_VertAlign1.odt",
+ "0284_WordOLE.odt"
+ ]
+ },
+ "element \"draw:handle\" missing required attributes
\"draw:handle-position-x\" and \"draw:handle-position-y\"": {
+ "errors": 1,
+ "packages": [
+ "0199_CheckFlies.odt"
+ ]
+ },
+ "element \"style:graphic-properties\" not allowed here": {
+ "errors": 279,
+ "packages": [
+ "0004_soffice.odp",
+ "0038_Calc_6.ods",
+ "0039_imp1.odp",
+ "0045_readmeConverter.odt",
+ "0048__OOoDocAnalysisExcelDriver.ods",
+ "0049__OOoDocAnalysisPPTDriver.odp",
+ "0051_Stripped_OOoDocAnalysisExcelDriver.ods",
+ "0052_Stripped_OOoDocAnalysisPPTDriver.odp",
+ "0065_FirstStepsBasic.odt",
+ "0067_AddInChart.ods",
+ "0070_SimplePresentation.odp",
+ "0071_ProgrammaticScriptAssignment.odt",
+ "0082_ToDo.ods",
+ "0088_calcshapes.ods",
+ "0101_SwXTextEmbeddedObject.odt",
+ "0103_TwoShapes.odp",
+ "0117_calcshapes.ods",
+ "0118_calcshapes.ods",
+ "0133_imagecontrols.ods",
+ "0144_Shapes.ods",
+ "0173_Shapes.ods",
+ "0191_testinput.odp",
+ "0192_testinput.odp",
+ "0194_TEST.odt",
+ "0197_drawing_layer_UNO_objects.odg",
+ "0204_SwXTextEmbeddedObject.odt",
+ "0212_CalcDoc.ods",
+ "0213_ImpressDoc.odp",
+ "0225_i97645 New example.odt",
+ "0226_test-image.odt",
+ "0227_test-image1.odt",
+ "0228_test.odt",
+ "0229_Word DocumentOffice 2007 Format Sample6.odt",
+ "0238_parentinvguid.odt",
+ "0246_updatejpegprocessing.odt",
+ "0262_MultiWrapping1.odt",
+ "0265_Picture1.odt",
+ "0341_c_textimage.ods",
+ "0386_c_insertimage.ods",
+ "0401_c_textimage.ods",
+ "0416_OpenDocumentSignatures-TestIntegration.odt",
+ "0418_XMLSecurityFramework.odt"
+ ]
+ },
+ "value of attribute \"office:version\" is invalid": {
+ "errors": 8,
+ "packages": [
+ "0442_invalid_ooo2_x_doc1.odt",
+ "0444_invalid_ooo2_x_macro1.odt",
+ "0445_invalid_ooo2_x_macro2.odt",
+ "0446_invalid_ooo2_x_macro3.odt",
+ "0447_invalid_ooo2_x_macro4.odt",
+ "0458_valid_ooo2_x_doc_macro.odt",
+ "0459_valid_ooo2_x_doc_unsigned_macro.odt",
+ "0460_valid_ooo2_x_doc1.odt"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/odf-validate/fixtures/t16e.py
b/test/odf-validate/fixtures/t16e.py
new file mode 100644
index 0000000000..ecbc13ad40
--- /dev/null
+++ b/test/odf-validate/fixtures/t16e.py
@@ -0,0 +1,81 @@
+#!/usr/bin/env python3
+# usage: runpy.sh fixtures/t16e.py <port> <outdir>
+# Task 16a: runtime checks of the XML processing requirements of ODF 1.2 Part
1 section 2.4 E on hand-built Writer packages.
+# Prints "RESULT <name> <observation>" lines; the expectation of a conforming
consumer is in the name or the comment.
+import sys, os, re, zipfile, uno
+from unohelp import connect, desktop, pv
+port, out = int(sys.argv[1]), os.path.abspath(sys.argv[2])
+os.makedirs(out, exist_ok=True)
+desk = desktop(connect(port))
+OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0"
+TEXT = "urn:oasis:names:tc:opendocument:xmlns:text:1.0"
+STYLE = "urn:oasis:names:tc:opendocument:xmlns:style:1.0"
+XL = "http://www.w3.org/1999/xlink"
+MAN = ('<?xml version="1.0" encoding="UTF-8"?><manifest:manifest
xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"
manifest:version="1.2">'
+ '<manifest:file-entry manifest:full-path="/"
manifest:media-type="application/vnd.oasis.opendocument.text"/>'
+ '<manifest:file-entry manifest:full-path="content.xml"
manifest:media-type="text/xml"/>'
+ '<manifest:file-entry manifest:full-path="styles.xml"
manifest:media-type="text/xml"/></manifest:manifest>')
+STYLES = ('<?xml version="1.0" encoding="UTF-8"?><office:document-styles
xmlns:office="%s" xmlns:style="%s" xmlns:text="%s" office:version="1.2">'
+ '<office:styles><style:style style:name="P1"
style:family="paragraph"><style:text-properties style:text-position="33%%
100%%"/></style:style></office:styles>'
+ '</office:document-styles>' % (OFFICE, STYLE, TEXT))
+def pkg(name, content):
+ p = os.path.join(out, name)
+ z = zipfile.ZipFile(p, "w")
+ z.writestr("mimetype", "application/vnd.oasis.opendocument.text",
compress_type=zipfile.ZIP_STORED)
+ z.writestr("META-INF/manifest.xml", MAN); z.writestr("styles.xml",
STYLES); z.writestr("content.xml", content)
+ z.close(); return p
+def doc(body, root_ns=None, pre="", extra_attrs=""):
+ ns = root_ns if root_ns is not None else 'xmlns:office="%s"
xmlns:text="%s" xmlns:style="%s" xmlns:xlink="%s"' % (OFFICE, TEXT, STYLE, XL)
+ return '<?xml version="1.0" encoding="UTF-8"?>%s<office:document-content
%s
office:version="1.2"><office:body><office:text>%s</office:text></office:body></office:document-content>'
% (pre, ns, body)
+def observe(path):
+ try:
+ d = desk.loadComponentFromURL(uno.systemPathToFileUrl(path), "_blank",
0, (pv("Hidden", True),))
+ except Exception as e:
+ return {"loaded": False, "error": repr(e)[:120]}
+ if d is None:
+ return {"loaded": False, "error": "None"}
+ r = {"loaded": True}
+ try:
+ r["text"] = d.Text.String.replace("\n", "|")
+ en = d.Text.createEnumeration(); refs = []; styles = []
+ while en.hasMoreElements():
+ e = en.nextElement()
+ if e.supportsService("com.sun.star.text.Paragraph"):
+ refs.append(e.MetadataReference.Second);
styles.append(e.ParaStyleName)
+ r["xmlid"] = refs; r["parastyle"] = styles
+ r["bookmarks"] = d.Bookmarks.Count
+ except Exception as e:
+ r["obs_error"] = repr(e)[:100]
+ d.close(True); return r
+def run(name, content, note=""):
+ r = observe(pkg(name + ".odt", content)); print("RESULT %-34s %s %s" %
(name, r, ("# " + note) if note else ""), flush=True)
+# ---- baseline and namespace handling
+run("00-baseline", doc('<text:p
xml:id="p1">one</text:p><text:p>two</text:p><text:bookmark text:name="b1"
xml:id="bk1"/>'))
+# prefixes renamed throughout (expected: identical to the baseline)
+b = doc('<text:p xml:id="p1">one</text:p><text:p>two</text:p><text:bookmark
text:name="b1" xml:id="bk1"/>')
+b = re.sub(r'(</?|\s)text:', r'\1t:', b); b = b.replace('xmlns:text=',
'xmlns:t=')
+b = re.sub(r'(</?|\s)office:', r'\1o:', b); b = b.replace('xmlns:office=',
'xmlns:o=')
+run("01-prefixes-renamed", b, "conforming: same as baseline")
+# default namespace for the text elements
+run("02-default-namespace", doc('<p xml:id="p1">one</p><p>two</p>',
root_ns='xmlns:office="%s" xmlns="%s" xmlns:style="%s"' % (OFFICE, TEXT,
STYLE)), "conforming: same text")
+# unprefixed attribute under a default namespace: no namespace per Namespaces
in XML, so style-name must be ignored
+run("03-unprefixed-attr", doc('<p style-name="P1">one</p>',
root_ns='xmlns:office="%s" xmlns="%s" xmlns:style="%s"' % (OFFICE, TEXT,
STYLE)), "conforming: parastyle stays Standard")
+# prefix rebound to another namespace inside the element: it is then not a
text:p
+run("04-prefix-rebound", doc('<text:p
xmlns:text="urn:example:other">hidden</text:p><text:p>shown</text:p>'),
"conforming: only 'shown'")
+# undeclared prefix: not namespace-well-formed
+run("05-undeclared-prefix", doc('<text:p>one</text:p>',
root_ns='xmlns:office="%s"' % OFFICE), "conforming: load fails")
+# unknown element and attribute in the ODF namespace
+run("06-unknown-content", doc('<text:foo>x</text:foo><text:p
text:bogus="1">kept</text:p>'), "tolerated: 'kept'")
+# ---- xml:id
+run("10-xmlid-whitespace", doc('<text:p xml:id=" w1 ">one</text:p>'),
"xml:id spec: normalised to w1")
+run("11-xmlid-duplicate", doc('<text:p xml:id="d1">one</text:p><text:p
xml:id="d1">two</text:p>'), "xml:id spec: duplicate is an error")
+run("12-xmlid-not-ncname", doc('<text:p xml:id="1bad">one</text:p>'), "xml:id
spec: invalid value")
+# ---- DTD and entities
+run("20-internal-entity", doc('<text:p>&e;</text:p>', pre='<!DOCTYPE
office:document-content [<!ENTITY e "ENTITYTEXT">]>'), "expanded")
+host = open("/etc/hostname").read().strip() if os.path.exists("/etc/hostname")
else "zzz"
+open(os.path.join(out, "secret.txt"), "w").write("SECRETFILE")
+run("21-external-entity", doc('<text:p>a&x;b</text:p>', pre='<!DOCTYPE
office:document-content [<!ENTITY x SYSTEM "file://%s/secret.txt">]>' % out),
"must NOT contain SECRETFILE")
+run("22-external-dtd", doc('<text:p>one</text:p>', pre='<!DOCTYPE
office:document-content SYSTEM "file://%s/secret.txt">' % out), "must load,
nothing fetched")
+laugh = '<!DOCTYPE office:document-content [<!ENTITY a "lol"><!ENTITY b
"&a;&a;&a;&a;&a;&a;&a;&a;&a;&a;"><!ENTITY c
"&b;&b;&b;&b;&b;&b;&b;&b;&b;&b;"><!ENTITY d
"&c;&c;&c;&c;&c;&c;&c;&c;&c;&c;"><!ENTITY e
"&d;&d;&d;&d;&d;&d;&d;&d;&d;&d;"><!ENTITY f
"&e;&e;&e;&e;&e;&e;&e;&e;&e;&e;"><!ENTITY g
"&f;&f;&f;&f;&f;&f;&f;&f;&f;&f;"><!ENTITY h
"&g;&g;&g;&g;&g;&g;&g;&g;&g;&g;"><!ENTITY i "&h;&h;&h;&h;&h;&h;&h;&h;&h;&h;">]>'
+run("23-entity-expansion-limit", doc('<text:p>&i;</text:p>', pre=laugh),
"expansion 10^8: must not hang or exhaust memory")
+print("DONE")