From 97d1025a0ffe1c72a6a12c0e0c685c055b7c1fd7 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Wed, 29 Sep 2021 23:47:33 +0100 Subject: [PATCH 01/18] Add schema validator --- .github/workflows/default.yml | 77 + .travis.yml | 63 - ...numbering-instances-and-starting-number.ts | 154 +- demo/70-line-numbers-suppression.ts | 4 +- package-lock.json | 143 + package.json | 4 + scripts/schema-validator/.gitignore | 2 + scripts/schema-validator/index.ts | 18 + .../schemas/ISO-IEC29500-4_2016/dml-chart.xsd | 1499 ++++++ .../ISO-IEC29500-4_2016/dml-chartDrawing.xsd | 146 + .../ISO-IEC29500-4_2016/dml-diagram.xsd | 1085 ++++ .../ISO-IEC29500-4_2016/dml-lockedCanvas.xsd | 11 + .../schemas/ISO-IEC29500-4_2016/dml-main.xsd | 3081 ++++++++++++ .../ISO-IEC29500-4_2016/dml-picture.xsd | 23 + .../dml-spreadsheetDrawing.xsd | 185 + .../dml-wordprocessingDrawing.xsd | 287 ++ .../schemas/ISO-IEC29500-4_2016/pml.xsd | 1676 +++++++ .../shared-additionalCharacteristics.xsd | 28 + .../shared-bibliography.xsd | 144 + .../shared-commonSimpleTypes.xsd | 172 + .../shared-customXmlDataProperties.xsd | 25 + .../shared-customXmlSchemaProperties.xsd | 18 + .../shared-documentPropertiesCustom.xsd | 59 + .../shared-documentPropertiesExtended.xsd | 56 + .../shared-documentPropertiesVariantTypes.xsd | 195 + .../ISO-IEC29500-4_2016/shared-math.xsd | 582 +++ .../shared-relationshipReference.xsd | 25 + .../schemas/ISO-IEC29500-4_2016/sml.xsd | 4439 +++++++++++++++++ .../schemas/ISO-IEC29500-4_2016/vml-main.xsd | 570 +++ .../ISO-IEC29500-4_2016/vml-officeDrawing.xsd | 509 ++ .../vml-presentationDrawing.xsd | 12 + .../vml-spreadsheetDrawing.xsd | 108 + .../vml-wordprocessingDrawing.xsd | 96 + .../schemas/ISO-IEC29500-4_2016/wml.xsd | 3646 ++++++++++++++ .../schemas/ISO-IEC29500-4_2016/xml.xsd | 116 + scripts/schema-validator/schemas/mce/mc.xsd | 75 + .../schemas/microsoft/wml-2010.xsd | 560 +++ .../schemas/microsoft/wml-2012.xsd | 66 + .../schemas/microsoft/wml-2018.xsd | 14 + .../schemas/microsoft/wml-cex-2018.xsd | 19 + .../schemas/microsoft/wml-cid-2016.xsd | 13 + .../microsoft/wml-sdtdatahash-2020.xsd | 4 + .../schemas/microsoft/wml-symex-2015.xsd | 8 + .../schemas/microsoft/word12.xsd | 3 + 44 files changed, 19879 insertions(+), 141 deletions(-) delete mode 100644 .travis.yml create mode 100644 scripts/schema-validator/.gitignore create mode 100644 scripts/schema-validator/index.ts create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chart.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-main.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-picture.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/pml.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-math.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/sml.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-main.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/wml.xsd create mode 100644 scripts/schema-validator/schemas/ISO-IEC29500-4_2016/xml.xsd create mode 100644 scripts/schema-validator/schemas/mce/mc.xsd create mode 100644 scripts/schema-validator/schemas/microsoft/wml-2010.xsd create mode 100644 scripts/schema-validator/schemas/microsoft/wml-2012.xsd create mode 100644 scripts/schema-validator/schemas/microsoft/wml-2018.xsd create mode 100644 scripts/schema-validator/schemas/microsoft/wml-cex-2018.xsd create mode 100644 scripts/schema-validator/schemas/microsoft/wml-cid-2016.xsd create mode 100644 scripts/schema-validator/schemas/microsoft/wml-sdtdatahash-2020.xsd create mode 100644 scripts/schema-validator/schemas/microsoft/wml-symex-2015.xsd create mode 100644 scripts/schema-validator/schemas/microsoft/word12.xsd diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 8641b58af7..03ae8eae87 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -75,65 +75,142 @@ jobs: - name: Run demos run: | npm run ts-node -- ./demo/1-basic.ts + npm run validate npm run ts-node -- ./demo/2-declaritive-styles.ts + npm run validate npm run ts-node -- ./demo/3-numbering-and-bullet-points.ts + npm run validate npm run ts-node -- ./demo/4-basic-table.ts + npm run validate npm run ts-node -- ./demo/5-images.ts + npm run validate npm run ts-node -- ./demo/6-page-borders.ts + npm run validate npm run ts-node -- ./demo/7-landscape.ts + npm run validate npm run ts-node -- ./demo/8-header-footer.ts + npm run validate npm run ts-node -- ./demo/9-images-in-header-and-footer.ts + npm run validate npm run ts-node -- ./demo/10-my-cv.ts + npm run validate npm run ts-node -- ./demo/11-declaritive-styles-2.ts + npm run validate npm run ts-node -- ./demo/12-scaling-images.ts + npm run validate npm run ts-node -- ./demo/13-xml-styles.ts + npm run validate npm run ts-node -- ./demo/14-page-numbers.ts + npm run validate npm run ts-node -- ./demo/15-page-break-before.ts + npm run validate npm run ts-node -- ./demo/16-multiple-sections.ts + npm run validate npm run ts-node -- ./demo/17-footnotes.ts + npm run validate npm run ts-node -- ./demo/18-image-from-buffer.ts + npm run validate npm run ts-node -- ./demo/19-export-to-base64.ts + npm run validate npm run ts-node -- ./demo/20-table-cell-borders.ts + npm run validate npm run ts-node -- ./demo/21-bookmarks.ts + npm run validate npm run ts-node -- ./demo/22-right-to-left-text.ts + npm run validate npm run ts-node -- ./demo/23-base64-images.ts + npm run validate npm run ts-node -- ./demo/24-images-to-table-cell.ts + npm run validate npm run ts-node -- ./demo/25-table-xml-styles.ts + npm run validate npm run ts-node -- ./demo/26-paragraph-borders.ts + npm run validate npm run ts-node -- ./demo/27-declaritive-styles-3.ts + npm run validate npm run ts-node -- ./demo/28-table-of-contents.ts + npm run validate npm run ts-node -- ./demo/29-numbered-lists.ts + npm run validate npm run ts-node -- ./demo/30-template-document.ts + npm run validate npm run ts-node -- ./demo/31-tables.ts + npm run validate npm run ts-node -- ./demo/32-merge-and-shade-table-cells.ts + npm run validate npm run ts-node -- ./demo/33-sequential-captions.ts + npm run validate npm run ts-node -- ./demo/34-floating-tables.ts + npm run validate npm run ts-node -- ./demo/35-hyperlinks.ts + npm run validate npm run ts-node -- ./demo/36-image-to-table-cell.ts + npm run validate npm run ts-node -- ./demo/37-images-to-header-and-footer.ts + npm run validate npm run ts-node -- ./demo/38-text-wrapping.ts + npm run validate npm run ts-node -- ./demo/39-page-numbers.ts + npm run validate npm run ts-node -- ./demo/40-line-numbers.ts + npm run validate npm run ts-node -- ./demo/41-merge-table-cells-2.ts + npm run validate npm run ts-node -- ./demo/42-restart-page-numbers.ts + npm run validate npm run ts-node -- ./demo/43-images-to-table-cell-2.ts + npm run validate npm run ts-node -- ./demo/44-multiple-columns.ts + npm run validate npm run ts-node -- ./demo/45-highlighting-text.ts + npm run validate npm run ts-node -- ./demo/46-shading-text.ts + npm run validate npm run ts-node -- ./demo/47-number-of-total-pages-section.ts + npm run validate npm run ts-node -- ./demo/48-vertical-align.ts + npm run validate npm run ts-node -- ./demo/49-table-borders.ts + npm run validate npm run ts-node -- ./demo/50-readme-demo.ts + npm run validate npm run ts-node -- ./demo/51-character-styles.ts + npm run validate npm run ts-node -- ./demo/52-japanese.ts + npm run validate npm run ts-node -- ./demo/53-chinese.ts + npm run validate npm run ts-node -- ./demo/54-custom-properties.ts + npm run validate npm run ts-node -- ./demo/55-math.ts + npm run validate npm run ts-node -- ./demo/56-background-color.ts + npm run validate npm run ts-node -- ./demo/57-add-parent-numbered-lists.ts + npm run validate npm run ts-node -- ./demo/58-section-types.ts + npm run validate npm run ts-node -- ./demo/59-header-footer-margins.ts + npm run validate npm run ts-node -- ./demo/60-track-revisions.ts + npm run validate npm run ts-node -- ./demo/61-text-frame.ts + npm run validate npm run ts-node -- ./demo/62-paragraph-spacing.ts + npm run validate npm run ts-node -- ./demo/63-odd-even-header-footer.ts + npm run validate + npm run ts-node -- ./demo/64-complex-numbering-text.ts + npm run validate + npm run ts-node -- ./demo/65-page-sizes.ts + npm run validate + npm run ts-node -- ./demo/66-fields.ts + npm run validate + npm run ts-node -- ./demo/67-column-break.ts + npm run validate + npm run ts-node -- ./demo/68-numbering-instances-and-starting-number.ts + npm run validate + npm run ts-node -- ./demo/69-different-width-columns.ts + npm run validate + npm run ts-node -- ./demo/70-line-numbers-suppression.ts + npm run validate diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3d4166c482..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,63 +0,0 @@ -language: node_js -node_js: - - 10 -install: - - npm install - - npm install -g codecov -script: - - npm run lint - - npm run test.coverage - - npm run style - - npm run build - - npm run ts-node -- ./demo/1-basic.ts -# - npm run e2e "My Document.docx" - - npm run ts-node -- ./demo/2-declaritive-styles.ts - - npm run ts-node -- ./demo/3-numbering-and-bullet-points.ts - - npm run ts-node -- ./demo/4-basic-table.ts - - npm run ts-node -- ./demo/5-images.ts - - npm run ts-node -- ./demo/6-page-borders.ts - - npm run ts-node -- ./demo/7-landscape.ts - - npm run ts-node -- ./demo/8-header-footer.ts - - npm run ts-node -- ./demo/9-images-in-header-and-footer.ts - - npm run ts-node -- ./demo/10-my-cv.ts -# - npm run e2e "My Document.docx" - - npm run ts-node -- ./demo/11-declaritive-styles-2.ts - - npm run ts-node -- ./demo/12-scaling-images.ts - - npm run ts-node -- ./demo/13-xml-styles.ts - - npm run ts-node -- ./demo/14-page-numbers.ts - - npm run ts-node -- ./demo/15-page-break-before.ts - - npm run ts-node -- ./demo/16-multiple-sections.ts - - npm run ts-node -- ./demo/17-footnotes.ts - - npm run ts-node -- ./demo/18-image-from-buffer.ts - - npm run ts-node -- ./demo/19-export-to-base64.ts - - npm run ts-node -- ./demo/20-table-cell-borders.ts - - npm run ts-node -- ./demo/21-bookmarks.ts - - npm run ts-node -- ./demo/22-right-to-left-text.ts - - npm run ts-node -- ./demo/23-base64-images.ts - - npm run ts-node -- ./demo/24-images-to-table-cell.ts -# - npm run ts-node -- ./demo/demo25.ts - - npm run ts-node -- ./demo/26-paragraph-borders.ts - - npm run ts-node -- ./demo/27-declaritive-styles-3.ts - - npm run ts-node -- ./demo/28-table-of-contents.ts - - npm run ts-node -- ./demo/29-numbered-lists.ts - - npm run ts-node -- ./demo/30-template-document.ts - - npm run ts-node -- ./demo/31-tables.ts - - npm run ts-node -- ./demo/32-merge-and-shade-table-cells.ts -# - npm run e2e "My Document.docx" // Need to fix - - npm run ts-node -- ./demo/33-sequential-captions.ts - - npm run ts-node -- ./demo/34-floating-tables.ts -after_failure: - - "cat /home/travis/builds/dolanmiu/docx/npm-debug.log" -after_success: - - npm run typedoc - - echo "docx.js.org" > docs/.nojekyll - - echo "docx.js.org" > docs/CNAME - - codecov -deploy: - provider: pages - skip-cleanup: true - github-token: $GITHUB_TOKEN - keep-history: true - local-dir: docs - on: - branch: master diff --git a/demo/68-numbering-instances-and-starting-number.ts b/demo/68-numbering-instances-and-starting-number.ts index 6bfda02e96..67fb1cdc3b 100644 --- a/demo/68-numbering-instances-and-starting-number.ts +++ b/demo/68-numbering-instances-and-starting-number.ts @@ -1,86 +1,88 @@ import * as fs from "fs"; -import { Document, Packer, Paragraph, PageNumberFormat} from "../build"; +import { Document, Packer, Paragraph, PageNumberFormat } from "../build"; const doc = new Document({ - numbering:{ - config:[ - { - reference: 'ref1', - levels: [ - { - level: 0, - format: PageNumberFormat.DECIMAL, - text: '%1', - start: 10, - } + numbering: { + config: [ + { + reference: "ref1", + levels: [ + { + level: 0, + format: PageNumberFormat.DECIMAL, + text: "%1", + start: 10, + }, + ], + }, + { + reference: "ref2", + levels: [ + { + level: 0, + format: PageNumberFormat.DECIMAL, + text: "%1", + }, + ], + }, ], - }, - { - reference: 'ref2', - levels: [ - { - level: 0, - format: PageNumberFormat.DECIMAL, - text: '%1' - } - ], - }, - ] - }, - sections: [{ - children: [ - new Paragraph({ - text: "REF1 - inst:0 - lvl:0", - numbering : { - reference: 'ref1', - instance: 0, - level: 0, - } - }), - new Paragraph({ - text: "REF1 - inst:0 - lvl:0", - numbering : { - reference: 'ref1', - instance: 0, - level: 0, - } - }), - new Paragraph({ - text: "REF1 - inst:1 - lvl:0", - numbering : { - reference: 'ref1', - instance: 1, - level: 0, + }, + sections: [ + { + children: [ + new Paragraph({ + text: "REF1 - inst:0 - lvl:0", + numbering: { + reference: "ref1", + instance: 0, + level: 0, + }, + }), + new Paragraph({ + text: "REF1 - inst:0 - lvl:0", + numbering: { + reference: "ref1", + instance: 0, + level: 0, + }, + }), + new Paragraph({ + text: "REF1 - inst:1 - lvl:0", + numbering: { + reference: "ref1", + instance: 1, + level: 0, + }, + }), + new Paragraph({ + text: "REF1 - inst:1 - lvl:0", + numbering: { + reference: "ref1", + instance: 1, + level: 0, + }, + }), + new Paragraph({ + text: "REF2 - inst:0 - lvl:0", + numbering: { + reference: "ref2", + instance: 1, + level: 0, + }, + }), + new Paragraph({ + text: "REF2 - inst:0 - lvl:0", + numbering: { + reference: "ref2", + instance: 1, + level: 0, + }, + }), + ], }, - }), - new Paragraph({ - text: "REF1 - inst:1 - lvl:0", - numbering : { - reference: 'ref1', - instance: 1, - level: 0, - } - }), - new Paragraph({ - text: "REF2 - inst:0 - lvl:0", - numbering : { - reference: 'ref2', - instance: 1, - level: 0, - } - }), - new Paragraph({ - text: "REF2 - inst:0 - lvl:0", - numbering : { - reference: 'ref2', - instance: 1, - level: 0, - } - }) ], - }] }); Packer.toBuffer(doc).then((buffer) => { fs.writeFileSync("My Document.docx", buffer); -}); \ No newline at end of file +}); diff --git a/demo/70-line-numbers-suppression.ts b/demo/70-line-numbers-suppression.ts index 3fc0cbef74..4a9b432ef8 100644 --- a/demo/70-line-numbers-suppression.ts +++ b/demo/70-line-numbers-suppression.ts @@ -21,8 +21,8 @@ const doc = new Document({ "Himenaeos duis luctus nullam fermentum lobortis potenti vivamus non dis, sed facilisis ultricies scelerisque aenean risus hac senectus. Adipiscing id venenatis justo ante gravida placerat, ac curabitur dis pellentesque proin bibendum risus, aliquam porta taciti vulputate primis. Tortor ipsum fermentum quam vel convallis primis nisl praesent tincidunt, lobortis quisque felis vitae condimentum class ut sem nam, aenean potenti pretium ac amet lacinia himenaeos mi. Aliquam nisl turpis hendrerit est morbi malesuada, augue interdum mus inceptos curabitur tristique, parturient feugiat sodales nulla facilisi. Aliquam non pulvinar purus nulla ex integer, velit faucibus vitae at bibendum quam, risus elit aenean adipiscing posuere.", ), new Paragraph({ - text: 'Enim mollit nostrud ut dolor eiusmod id sit occaecat dolore culpa amet. Veniam dolor consequat dolor labore ullamco laborum dolore eiusmod qui adipisicing. Elit nulla cupidatat et magna. Id eiusmod tempor non laborum ipsum. Veniam et aliqua excepteur duis officia enim elit excepteur fugiat duis. Sit sunt ullamco non dolor est qui deserunt consequat magna. Esse pariatur esse dolor ut excepteur dolor nisi nisi non est cupidatat mollit.', - suppressLineNumbers: true + text: "Enim mollit nostrud ut dolor eiusmod id sit occaecat dolore culpa amet. Veniam dolor consequat dolor labore ullamco laborum dolore eiusmod qui adipisicing. Elit nulla cupidatat et magna. Id eiusmod tempor non laborum ipsum. Veniam et aliqua excepteur duis officia enim elit excepteur fugiat duis. Sit sunt ullamco non dolor est qui deserunt consequat magna. Esse pariatur esse dolor ut excepteur dolor nisi nisi non est cupidatat mollit.", + suppressLineNumbers: true, }), new Paragraph( "Sed laoreet id mattis egestas nam mollis elit lacinia convallis dui tincidunt ultricies habitant, pharetra per maximus interdum neque tempor risus efficitur morbi imperdiet senectus. Lectus laoreet senectus finibus inceptos donec potenti fermentum, ultrices eleifend odio suscipit magnis tellus maximus nibh, ac sit nullam eget felis himenaeos. Diam class sem magnis aenean commodo faucibus id proin mi, nullam sodales nec mus parturient ornare ad inceptos velit hendrerit, bibendum placerat eleifend integer facilisis urna dictumst suspendisse.", diff --git a/package-lock.json b/package-lock.json index 70dfc3e447..a439231049 100644 --- a/package-lock.json +++ b/package-lock.json @@ -644,6 +644,15 @@ "integrity": "sha512-Y0K95ThC3esLEYD6ZuqNek29lNX2EM1qxV8y2FTLUB0ff5wWrk7az+mLrnNFUnaXcgKye22+sFBRXOgpPILZNg==", "dev": true }, + "@types/unzipper": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/@types/unzipper/-/unzipper-0.10.4.tgz", + "integrity": "sha512-mryXpAwwQadmfjKWoR7NXnELZVlU90xTON1v3Pq2AcOmuAPFkPh09E0X8fpbx2zofoR5zmOIxGqmWOhD0qXE7g==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, "@types/webpack": { "version": "5.28.0", "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-5.28.0.tgz", @@ -1044,6 +1053,22 @@ "tweetnacl": "^0.14.3" } }, + "big-integer": { + "version": "1.6.49", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.49.tgz", + "integrity": "sha512-KJ7VhqH+f/BOt9a3yMwJNmcZjG53ijWMTjSAGMveQWyLwqIiwkjNP5PFgDob3Snnx86SjDj6I89fIbv0dkQeNw==", + "dev": true + }, + "binary": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", + "integrity": "sha1-n2BVO8XOjDOG87VTz/R0Yq3sqnk=", + "dev": true, + "requires": { + "buffers": "~0.1.1", + "chainsaw": "~0.1.0" + } + }, "binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -1221,6 +1246,18 @@ "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, + "buffer-indexof-polyfill": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.2.tgz", + "integrity": "sha512-I7wzHwA3t1/lwXQh+A5PbNvJxgfo5r3xulgpYDB5zckTu/Z9oUK9biouBKQUjEqzaz3HnAT6TYoovmE+GqSf7A==", + "dev": true + }, + "buffers": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz", + "integrity": "sha1-skV5w77U1tOWru5tmorn9Ugqt7s=", + "dev": true + }, "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", @@ -1314,6 +1351,15 @@ "type-detect": "^1.0.0" } }, + "chainsaw": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", + "integrity": "sha1-XqtQsor+WAdNDVgpE4iCi15fvJg=", + "dev": true, + "requires": { + "traverse": ">=0.3.0 <0.4" + } + }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -1892,6 +1938,15 @@ "is-obj": "^2.0.0" } }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "^2.0.2" + } + }, "duplexer3": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", @@ -2355,6 +2410,29 @@ "dev": true, "optional": true }, + "fstream": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", + "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "inherits": "~2.0.0", + "mkdirp": ">=0.5 0", + "rimraf": "2" + }, + "dependencies": { + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } + } + }, "gensync": { "version": "1.0.0-beta.1", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", @@ -3140,6 +3218,12 @@ "immediate": "~3.0.5" } }, + "listenercount": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/listenercount/-/listenercount-1.0.1.tgz", + "integrity": "sha1-hMinKrWcRyUyFIDJdeZQg0LnCTc=", + "dev": true + }, "livereload": { "version": "0.9.2", "resolved": "https://registry.npmjs.org/livereload/-/livereload-0.9.2.tgz", @@ -3503,6 +3587,15 @@ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", "dev": true }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, "mocha": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/mocha/-/mocha-9.1.2.tgz", @@ -4768,6 +4861,12 @@ "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=" }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true + }, "setprototypeof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", @@ -5152,6 +5251,12 @@ } } }, + "traverse": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", + "integrity": "sha1-cXuPIgzAu3tE5AUUwisui7xw2Lk=", + "dev": true + }, "ts-loader": { "version": "9.2.6", "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.2.6.tgz", @@ -5444,6 +5549,38 @@ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", "dev": true }, + "unzipper": { + "version": "0.10.11", + "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.10.11.tgz", + "integrity": "sha512-+BrAq2oFqWod5IESRjL3S8baohbevGcVA+teAIOYWM3pDVdseogqbzhhvvmiyQrUNKFUnDMtELW3X8ykbyDCJw==", + "dev": true, + "requires": { + "big-integer": "^1.6.17", + "binary": "~0.3.0", + "bluebird": "~3.4.1", + "buffer-indexof-polyfill": "~1.0.0", + "duplexer2": "~0.1.4", + "fstream": "^1.0.12", + "graceful-fs": "^4.2.2", + "listenercount": "~1.0.1", + "readable-stream": "~2.3.6", + "setimmediate": "~1.0.4" + }, + "dependencies": { + "bluebird": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", + "integrity": "sha1-9y12C+Cbf3bQjtj66Ysomo0F+rM=", + "dev": true + }, + "graceful-fs": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", + "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", + "dev": true + } + } + }, "update-notifier": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", @@ -5557,6 +5694,12 @@ "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", "dev": true }, + "validate-with-xmllint": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/validate-with-xmllint/-/validate-with-xmllint-1.2.0.tgz", + "integrity": "sha512-UZ1+rDi48HJVlzPKXhRQAZnlBMJceo04j+2w48QEAQa7bzIco/WY5YUigLoNTEa89kmbZbzrmgqzgN1HD+nu5A==", + "dev": true + }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", diff --git a/package.json b/package.json index 1a2e9d2819..7b67a2a77d 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "fix-types": "ts-node scripts/types-absolute-fixer.ts", "e2e": "ts-node scripts/e2e.ts", "serve.docs": "cd docs && docsify serve", + "validate": "ts-node scripts/schema-validator", "ts-node": "ts-node --skip-project" }, "pre-commit": [ @@ -65,6 +66,7 @@ "@types/mocha": "^9.0.0", "@types/request-promise": "^4.1.42", "@types/sinon": "^10.0.0", + "@types/unzipper": "^0.10.4", "@types/webpack": "^5.0.0", "buffer": "^6.0.3", "chai": "^3.5.0", @@ -91,6 +93,8 @@ "tslint-immutable": "^6.0.1", "typedoc": "^0.22.3", "typescript": "4.4.3", + "unzipper": "^0.10.11", + "validate-with-xmllint": "^1.2.0", "webpack": "^5.28.0", "webpack-cli": "^4.6.0" }, diff --git a/scripts/schema-validator/.gitignore b/scripts/schema-validator/.gitignore new file mode 100644 index 0000000000..78781f6565 --- /dev/null +++ b/scripts/schema-validator/.gitignore @@ -0,0 +1,2 @@ +work-area/ +!work-area/.gitkeep diff --git a/scripts/schema-validator/index.ts b/scripts/schema-validator/index.ts new file mode 100644 index 0000000000..ea7a0b72f5 --- /dev/null +++ b/scripts/schema-validator/index.ts @@ -0,0 +1,18 @@ +import * as fs from "fs"; +import * as unzipper from "unzipper"; +import { validateXMLWithXSD } from "validate-with-xmllint"; + +const main = async () => { + fs.copyFileSync("My Document.docx", "scripts/schema-validator/work-area/doc.zip"); + + const zip = await unzipper.Open.file("scripts/schema-validator/work-area/doc.zip"); + await zip.extract({ + path: "scripts/schema-validator/work-area/doc", + }); + + const xml = fs.readFileSync("scripts/schema-validator/work-area/doc/word/document.xml", "ascii"); + + await validateXMLWithXSD(xml, "scripts/schema-validator/schemas/microsoft/wml-2010.xsd"); +}; + +main(); diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chart.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chart.xsd new file mode 100644 index 0000000000..bc325f9f5e --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chart.xsd @@ -0,0 +1,1499 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd new file mode 100644 index 0000000000..afa4f463e3 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd new file mode 100644 index 0000000000..40e4b12a8e --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd @@ -0,0 +1,1085 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd new file mode 100644 index 0000000000..687eea8297 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd @@ -0,0 +1,11 @@ + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-main.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-main.xsd new file mode 100644 index 0000000000..94644b3f83 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-main.xsd @@ -0,0 +1,3081 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-picture.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-picture.xsd new file mode 100644 index 0000000000..1dbf05140d --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-picture.xsd @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd new file mode 100644 index 0000000000..f1af17db4e --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd new file mode 100644 index 0000000000..5c00a6ffc4 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd @@ -0,0 +1,287 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/pml.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/pml.xsd new file mode 100644 index 0000000000..25564ebbff --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/pml.xsd @@ -0,0 +1,1676 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd new file mode 100644 index 0000000000..c20f3bf147 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd new file mode 100644 index 0000000000..ac60252262 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd new file mode 100644 index 0000000000..7fa4d9277b --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd new file mode 100644 index 0000000000..2bddce2921 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd new file mode 100644 index 0000000000..8a8c18ba2d --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd new file mode 100644 index 0000000000..5c42706a0d --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd new file mode 100644 index 0000000000..853c341c87 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd new file mode 100644 index 0000000000..da835ee82d --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-math.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-math.xsd new file mode 100644 index 0000000000..4f37d307e8 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-math.xsd @@ -0,0 +1,582 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd new file mode 100644 index 0000000000..9e86f1b2be --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/sml.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/sml.xsd new file mode 100644 index 0000000000..237dd65250 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/sml.xsd @@ -0,0 +1,4439 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-main.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-main.xsd new file mode 100644 index 0000000000..eeb4ef8fa0 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-main.xsd @@ -0,0 +1,570 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd new file mode 100644 index 0000000000..ca2575c753 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd @@ -0,0 +1,509 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd new file mode 100644 index 0000000000..dd079e603f --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd new file mode 100644 index 0000000000..3dd6cf625a --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd new file mode 100644 index 0000000000..f1041e34ef --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/wml.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/wml.xsd new file mode 100644 index 0000000000..6fa33d9d07 --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/wml.xsd @@ -0,0 +1,3646 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/xml.xsd b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/xml.xsd new file mode 100644 index 0000000000..fbd88768da --- /dev/null +++ b/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/xml.xsd @@ -0,0 +1,116 @@ + + + + + + See http://www.w3.org/XML/1998/namespace.html and + http://www.w3.org/TR/REC-xml for information about this namespace. + + This schema document describes the XML namespace, in a form + suitable for import by other schema documents. + + Note that local names in this namespace are intended to be defined + only by the World Wide Web Consortium or its subgroups. The + following names are currently defined in this namespace and should + not be used with conflicting semantics by any Working Group, + specification, or document instance: + + base (as an attribute name): denotes an attribute whose value + provides a URI to be used as the base for interpreting any + relative URIs in the scope of the element on which it + appears; its value is inherited. This name is reserved + by virtue of its definition in the XML Base specification. + + lang (as an attribute name): denotes an attribute whose value + is a language code for the natural language of the content of + any element; its value is inherited. This name is reserved + by virtue of its definition in the XML specification. + + space (as an attribute name): denotes an attribute whose + value is a keyword indicating what whitespace processing + discipline is intended for the content of the element; its + value is inherited. This name is reserved by virtue of its + definition in the XML specification. + + Father (in any context at all): denotes Jon Bosak, the chair of + the original XML Working Group. This name is reserved by + the following decision of the W3C XML Plenary and + XML Coordination groups: + + In appreciation for his vision, leadership and dedication + the W3C XML Plenary on this 10th day of February, 2000 + reserves for Jon Bosak in perpetuity the XML name + xml:Father + + + + + This schema defines attributes and an attribute group + suitable for use by + schemas wishing to allow xml:base, xml:lang or xml:space attributes + on elements they define. + + To enable this, such a schema must import this schema + for the XML namespace, e.g. as follows: + <schema . . .> + . . . + <import namespace="http://www.w3.org/XML/1998/namespace" + schemaLocation="http://www.w3.org/2001/03/xml.xsd"/> + + Subsequently, qualified reference to any of the attributes + or the group defined below will have the desired effect, e.g. + + <type . . .> + . . . + <attributeGroup ref="xml:specialAttrs"/> + + will define a type which will schema-validate an instance + element with any of those attributes + + + + In keeping with the XML Schema WG's standard versioning + policy, this schema document will persist at + http://www.w3.org/2001/03/xml.xsd. + At the date of issue it can also be found at + http://www.w3.org/2001/xml.xsd. + The schema document at that URI may however change in the future, + in order to remain compatible with the latest version of XML Schema + itself. In other words, if the XML Schema namespace changes, the version + of this document at + http://www.w3.org/2001/xml.xsd will change + accordingly; the version at + http://www.w3.org/2001/03/xml.xsd will not change. + + + + + + In due course, we should install the relevant ISO 2- and 3-letter + codes as the enumerated possible values . . . + + + + + + + + + + + + + + + See http://www.w3.org/TR/xmlbase/ for + information about this attribute. + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/mce/mc.xsd b/scripts/schema-validator/schemas/mce/mc.xsd new file mode 100644 index 0000000000..ef725457cf --- /dev/null +++ b/scripts/schema-validator/schemas/mce/mc.xsd @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/microsoft/wml-2010.xsd b/scripts/schema-validator/schemas/microsoft/wml-2010.xsd new file mode 100644 index 0000000000..dd06b2a9e6 --- /dev/null +++ b/scripts/schema-validator/schemas/microsoft/wml-2010.xsd @@ -0,0 +1,560 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/microsoft/wml-2012.xsd b/scripts/schema-validator/schemas/microsoft/wml-2012.xsd new file mode 100644 index 0000000000..5100d9f0fb --- /dev/null +++ b/scripts/schema-validator/schemas/microsoft/wml-2012.xsd @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/microsoft/wml-2018.xsd b/scripts/schema-validator/schemas/microsoft/wml-2018.xsd new file mode 100644 index 0000000000..ae1b54c1ab --- /dev/null +++ b/scripts/schema-validator/schemas/microsoft/wml-2018.xsd @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/microsoft/wml-cex-2018.xsd b/scripts/schema-validator/schemas/microsoft/wml-cex-2018.xsd new file mode 100644 index 0000000000..99ea601dcc --- /dev/null +++ b/scripts/schema-validator/schemas/microsoft/wml-cex-2018.xsd @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/microsoft/wml-cid-2016.xsd b/scripts/schema-validator/schemas/microsoft/wml-cid-2016.xsd new file mode 100644 index 0000000000..7091e5fe6c --- /dev/null +++ b/scripts/schema-validator/schemas/microsoft/wml-cid-2016.xsd @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/scripts/schema-validator/schemas/microsoft/wml-sdtdatahash-2020.xsd b/scripts/schema-validator/schemas/microsoft/wml-sdtdatahash-2020.xsd new file mode 100644 index 0000000000..c1e485d408 --- /dev/null +++ b/scripts/schema-validator/schemas/microsoft/wml-sdtdatahash-2020.xsd @@ -0,0 +1,4 @@ + + + + diff --git a/scripts/schema-validator/schemas/microsoft/wml-symex-2015.xsd b/scripts/schema-validator/schemas/microsoft/wml-symex-2015.xsd new file mode 100644 index 0000000000..2ff95d6b66 --- /dev/null +++ b/scripts/schema-validator/schemas/microsoft/wml-symex-2015.xsd @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/scripts/schema-validator/schemas/microsoft/word12.xsd b/scripts/schema-validator/schemas/microsoft/word12.xsd new file mode 100644 index 0000000000..e57f38aa3e --- /dev/null +++ b/scripts/schema-validator/schemas/microsoft/word12.xsd @@ -0,0 +1,3 @@ + + + From d881646e73a0f5bd756a7de281611839a3d81b12 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:19:03 +0100 Subject: [PATCH 02/18] Try using GitHub Action validator --- .github/workflows/schema-validator.yml | 599 +++++++++++++++++++++++++ package.json | 2 +- scripts/schema-validator/.gitignore | 2 - scripts/schema-validator/index.ts | 12 +- 4 files changed, 602 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/schema-validator.yml delete mode 100644 scripts/schema-validator/.gitignore diff --git a/.github/workflows/schema-validator.yml b/.github/workflows/schema-validator.yml new file mode 100644 index 0000000000..f13e8c7607 --- /dev/null +++ b/.github/workflows/schema-validator.yml @@ -0,0 +1,599 @@ +name: Default +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Install Dependencies + run: npm ci + - name: Build + run: npm run build + - name: Archive Production Artifact + uses: actions/upload-artifact@master + with: + name: build + path: build + demos: + name: Run Demos and Validate + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Install Dependencies + run: npm ci + - name: Download Artifact + uses: actions/download-artifact@master + with: + name: build + path: build + - name: Run Demo + run: npm run ts-node -- ./demo/1-basic.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/2-declaritive-styles.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/3-numbering-and-bullet-points.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/4-basic-table.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/5-images.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/6-page-borders.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/7-landscape.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/8-header-footer.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/9-images-in-header-and-footer.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/10-my-cv.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/11-declaritive-styles-2.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/12-scaling-images.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/13-xml-styles.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/14-page-numbers.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/15-page-break-before.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/16-multiple-sections.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/17-footnotes.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/18-image-from-buffer.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/19-export-to-base64.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/20-table-cell-borders.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/21-bookmarks.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/22-right-to-left-text.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/23-base64-images.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/24-images-to-table-cell.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/25-table-xml-styles.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/26-paragraph-borders.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/27-declaritive-styles-3.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/28-table-of-contents.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/29-numbered-lists.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/30-template-document.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/31-tables.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/32-merge-and-shade-table-cells.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/33-sequential-captions.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/34-floating-tables.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/35-hyperlinks.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/36-image-to-table-cell.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/37-images-to-header-and-footer.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/38-text-wrapping.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/39-page-numbers.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/40-line-numbers.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/41-merge-table-cells-2.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/42-restart-page-numbers.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/43-images-to-table-cell-2.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/44-multiple-columns.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/45-highlighting-text.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/46-shading-text.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/47-number-of-total-pages-section.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/48-vertical-align.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/49-table-borders.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/50-readme-demo.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/51-character-styles.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/52-japanese.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/53-chinese.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/54-custom-properties.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/55-math.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/56-background-color.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/57-add-parent-numbered-lists.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/58-section-types.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/59-header-footer-margins.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/60-track-revisions.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/61-text-frame.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/62-paragraph-spacing.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/63-odd-even-header-footer.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/64-complex-numbering-text.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/65-page-sizes.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/66-fields.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/67-column-break.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/68-numbering-instances-and-starting-number.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/69-different-width-columns.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/70-line-numbers-suppression.ts + - name: Extract Word Document + run: npm run extract + - name: Validate XML + uses: ChristophWurst/xmllint-action@v1 + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd diff --git a/package.json b/package.json index 7b67a2a77d..b1817de28b 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "fix-types": "ts-node scripts/types-absolute-fixer.ts", "e2e": "ts-node scripts/e2e.ts", "serve.docs": "cd docs && docsify serve", - "validate": "ts-node scripts/schema-validator", + "extract": "ts-node scripts/schema-validator", "ts-node": "ts-node --skip-project" }, "pre-commit": [ diff --git a/scripts/schema-validator/.gitignore b/scripts/schema-validator/.gitignore deleted file mode 100644 index 78781f6565..0000000000 --- a/scripts/schema-validator/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -work-area/ -!work-area/.gitkeep diff --git a/scripts/schema-validator/index.ts b/scripts/schema-validator/index.ts index ea7a0b72f5..37382bba35 100644 --- a/scripts/schema-validator/index.ts +++ b/scripts/schema-validator/index.ts @@ -1,18 +1,10 @@ -import * as fs from "fs"; import * as unzipper from "unzipper"; -import { validateXMLWithXSD } from "validate-with-xmllint"; const main = async () => { - fs.copyFileSync("My Document.docx", "scripts/schema-validator/work-area/doc.zip"); - - const zip = await unzipper.Open.file("scripts/schema-validator/work-area/doc.zip"); + const zip = await unzipper.Open.file("My Document.docx"); await zip.extract({ - path: "scripts/schema-validator/work-area/doc", + path: "build/extracted-doc", }); - - const xml = fs.readFileSync("scripts/schema-validator/work-area/doc/word/document.xml", "ascii"); - - await validateXMLWithXSD(xml, "scripts/schema-validator/schemas/microsoft/wml-2010.xsd"); }; main(); From e6a0f3e8f7172e33646259004cee5d1ec8149b4b Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:22:00 +0100 Subject: [PATCH 03/18] Remove demos validation --- .github/workflows/default.yml | 156 ---------------------------------- 1 file changed, 156 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 03ae8eae87..042d1a0df2 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -58,159 +58,3 @@ jobs: run: npm ci - name: Prettier run: npm run style - demos: - name: Run Demos - needs: [build] - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@master - - name: Install Dependencies - run: npm ci - - name: Download Artifact - uses: actions/download-artifact@master - with: - name: build - path: build - - name: Run demos - run: | - npm run ts-node -- ./demo/1-basic.ts - npm run validate - npm run ts-node -- ./demo/2-declaritive-styles.ts - npm run validate - npm run ts-node -- ./demo/3-numbering-and-bullet-points.ts - npm run validate - npm run ts-node -- ./demo/4-basic-table.ts - npm run validate - npm run ts-node -- ./demo/5-images.ts - npm run validate - npm run ts-node -- ./demo/6-page-borders.ts - npm run validate - npm run ts-node -- ./demo/7-landscape.ts - npm run validate - npm run ts-node -- ./demo/8-header-footer.ts - npm run validate - npm run ts-node -- ./demo/9-images-in-header-and-footer.ts - npm run validate - npm run ts-node -- ./demo/10-my-cv.ts - npm run validate - npm run ts-node -- ./demo/11-declaritive-styles-2.ts - npm run validate - npm run ts-node -- ./demo/12-scaling-images.ts - npm run validate - npm run ts-node -- ./demo/13-xml-styles.ts - npm run validate - npm run ts-node -- ./demo/14-page-numbers.ts - npm run validate - npm run ts-node -- ./demo/15-page-break-before.ts - npm run validate - npm run ts-node -- ./demo/16-multiple-sections.ts - npm run validate - npm run ts-node -- ./demo/17-footnotes.ts - npm run validate - npm run ts-node -- ./demo/18-image-from-buffer.ts - npm run validate - npm run ts-node -- ./demo/19-export-to-base64.ts - npm run validate - npm run ts-node -- ./demo/20-table-cell-borders.ts - npm run validate - npm run ts-node -- ./demo/21-bookmarks.ts - npm run validate - npm run ts-node -- ./demo/22-right-to-left-text.ts - npm run validate - npm run ts-node -- ./demo/23-base64-images.ts - npm run validate - npm run ts-node -- ./demo/24-images-to-table-cell.ts - npm run validate - npm run ts-node -- ./demo/25-table-xml-styles.ts - npm run validate - npm run ts-node -- ./demo/26-paragraph-borders.ts - npm run validate - npm run ts-node -- ./demo/27-declaritive-styles-3.ts - npm run validate - npm run ts-node -- ./demo/28-table-of-contents.ts - npm run validate - npm run ts-node -- ./demo/29-numbered-lists.ts - npm run validate - npm run ts-node -- ./demo/30-template-document.ts - npm run validate - npm run ts-node -- ./demo/31-tables.ts - npm run validate - npm run ts-node -- ./demo/32-merge-and-shade-table-cells.ts - npm run validate - npm run ts-node -- ./demo/33-sequential-captions.ts - npm run validate - npm run ts-node -- ./demo/34-floating-tables.ts - npm run validate - npm run ts-node -- ./demo/35-hyperlinks.ts - npm run validate - npm run ts-node -- ./demo/36-image-to-table-cell.ts - npm run validate - npm run ts-node -- ./demo/37-images-to-header-and-footer.ts - npm run validate - npm run ts-node -- ./demo/38-text-wrapping.ts - npm run validate - npm run ts-node -- ./demo/39-page-numbers.ts - npm run validate - npm run ts-node -- ./demo/40-line-numbers.ts - npm run validate - npm run ts-node -- ./demo/41-merge-table-cells-2.ts - npm run validate - npm run ts-node -- ./demo/42-restart-page-numbers.ts - npm run validate - npm run ts-node -- ./demo/43-images-to-table-cell-2.ts - npm run validate - npm run ts-node -- ./demo/44-multiple-columns.ts - npm run validate - npm run ts-node -- ./demo/45-highlighting-text.ts - npm run validate - npm run ts-node -- ./demo/46-shading-text.ts - npm run validate - npm run ts-node -- ./demo/47-number-of-total-pages-section.ts - npm run validate - npm run ts-node -- ./demo/48-vertical-align.ts - npm run validate - npm run ts-node -- ./demo/49-table-borders.ts - npm run validate - npm run ts-node -- ./demo/50-readme-demo.ts - npm run validate - npm run ts-node -- ./demo/51-character-styles.ts - npm run validate - npm run ts-node -- ./demo/52-japanese.ts - npm run validate - npm run ts-node -- ./demo/53-chinese.ts - npm run validate - npm run ts-node -- ./demo/54-custom-properties.ts - npm run validate - npm run ts-node -- ./demo/55-math.ts - npm run validate - npm run ts-node -- ./demo/56-background-color.ts - npm run validate - npm run ts-node -- ./demo/57-add-parent-numbered-lists.ts - npm run validate - npm run ts-node -- ./demo/58-section-types.ts - npm run validate - npm run ts-node -- ./demo/59-header-footer-margins.ts - npm run validate - npm run ts-node -- ./demo/60-track-revisions.ts - npm run validate - npm run ts-node -- ./demo/61-text-frame.ts - npm run validate - npm run ts-node -- ./demo/62-paragraph-spacing.ts - npm run validate - npm run ts-node -- ./demo/63-odd-even-header-footer.ts - npm run validate - npm run ts-node -- ./demo/64-complex-numbering-text.ts - npm run validate - npm run ts-node -- ./demo/65-page-sizes.ts - npm run validate - npm run ts-node -- ./demo/66-fields.ts - npm run validate - npm run ts-node -- ./demo/67-column-break.ts - npm run validate - npm run ts-node -- ./demo/68-numbering-instances-and-starting-number.ts - npm run validate - npm run ts-node -- ./demo/69-different-width-columns.ts - npm run validate - npm run ts-node -- ./demo/70-line-numbers-suppression.ts - npm run validate From 60f59c1da59a524af2124b7b30af67d0ad4fa5bd Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:22:29 +0100 Subject: [PATCH 04/18] Remove validator --- package-lock.json | 6 ------ package.json | 1 - 2 files changed, 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index a439231049..e78abea0d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5694,12 +5694,6 @@ "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", "dev": true }, - "validate-with-xmllint": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/validate-with-xmllint/-/validate-with-xmllint-1.2.0.tgz", - "integrity": "sha512-UZ1+rDi48HJVlzPKXhRQAZnlBMJceo04j+2w48QEAQa7bzIco/WY5YUigLoNTEa89kmbZbzrmgqzgN1HD+nu5A==", - "dev": true - }, "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", diff --git a/package.json b/package.json index b1817de28b..f19f15abec 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,6 @@ "typedoc": "^0.22.3", "typescript": "4.4.3", "unzipper": "^0.10.11", - "validate-with-xmllint": "^1.2.0", "webpack": "^5.28.0", "webpack-cli": "^4.6.0" }, From 1727acf9ca4d570b79f21cea89724ff7a163343b Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:25:26 +0100 Subject: [PATCH 05/18] Fix YML errors --- .github/workflows/schema-validator.yml | 70 ++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/.github/workflows/schema-validator.yml b/.github/workflows/schema-validator.yml index f13e8c7607..6effbedc8f 100644 --- a/.github/workflows/schema-validator.yml +++ b/.github/workflows/schema-validator.yml @@ -43,6 +43,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -51,6 +52,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -59,6 +61,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -67,6 +70,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -75,6 +79,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -83,6 +88,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -91,6 +97,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -99,6 +106,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -107,6 +115,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -115,6 +124,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -123,6 +133,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -131,6 +142,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -139,6 +151,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -147,6 +160,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -155,6 +169,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -163,6 +178,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -171,6 +187,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -179,6 +196,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -187,6 +205,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -195,6 +214,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -203,6 +223,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -211,6 +232,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -219,6 +241,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -227,6 +250,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -235,6 +259,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -243,6 +268,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -251,6 +277,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -259,6 +286,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -267,6 +295,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -275,6 +304,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -283,6 +313,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -291,6 +322,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -299,6 +331,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -307,6 +340,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -315,6 +349,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -323,6 +358,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -331,6 +367,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -339,6 +376,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -347,6 +385,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -355,6 +394,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -363,6 +403,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -371,6 +412,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -379,6 +421,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -387,6 +430,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -395,6 +439,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -403,6 +448,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -411,6 +457,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -419,6 +466,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -427,6 +475,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -435,6 +484,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -443,6 +493,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -451,6 +502,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -459,6 +511,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -467,6 +520,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -475,6 +529,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -483,6 +538,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -491,6 +547,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -499,6 +556,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -507,6 +565,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -515,6 +574,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -523,6 +583,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -531,6 +592,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -539,6 +601,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -547,6 +610,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -555,6 +619,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -563,6 +628,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -571,6 +637,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -579,6 +646,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -587,6 +655,7 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - name: Run Demo @@ -595,5 +664,6 @@ jobs: run: npm run extract - name: Validate XML uses: ChristophWurst/xmllint-action@v1 + with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd From 9ba1c233dcb4d966304d962d41c18478c9752261 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:32:16 +0100 Subject: [PATCH 06/18] Rename pipeline --- .github/workflows/schema-validator.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/schema-validator.yml b/.github/workflows/schema-validator.yml index 6effbedc8f..cd4421d37b 100644 --- a/.github/workflows/schema-validator.yml +++ b/.github/workflows/schema-validator.yml @@ -1,4 +1,4 @@ -name: Default +name: Schema Validator on: push: branches: From d1837651f89f6a9caefac62f33d4a65f4499aaf8 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:36:28 +0100 Subject: [PATCH 07/18] Move schemas to better location --- .github/workflows/schema-validator.yml | 156 +++++++++--------- .../ISO-IEC29500-4_2016/dml-chart.xsd | 0 .../ISO-IEC29500-4_2016/dml-chartDrawing.xsd | 0 .../ISO-IEC29500-4_2016/dml-diagram.xsd | 0 .../ISO-IEC29500-4_2016/dml-lockedCanvas.xsd | 0 .../ISO-IEC29500-4_2016/dml-main.xsd | 0 .../ISO-IEC29500-4_2016/dml-picture.xsd | 0 .../dml-spreadsheetDrawing.xsd | 0 .../dml-wordprocessingDrawing.xsd | 0 .../ISO-IEC29500-4_2016/pml.xsd | 0 .../shared-additionalCharacteristics.xsd | 0 .../shared-bibliography.xsd | 0 .../shared-commonSimpleTypes.xsd | 0 .../shared-customXmlDataProperties.xsd | 0 .../shared-customXmlSchemaProperties.xsd | 0 .../shared-documentPropertiesCustom.xsd | 0 .../shared-documentPropertiesExtended.xsd | 0 .../shared-documentPropertiesVariantTypes.xsd | 0 .../ISO-IEC29500-4_2016/shared-math.xsd | 0 .../shared-relationshipReference.xsd | 0 .../ISO-IEC29500-4_2016/sml.xsd | 0 .../ISO-IEC29500-4_2016/vml-main.xsd | 0 .../ISO-IEC29500-4_2016/vml-officeDrawing.xsd | 0 .../vml-presentationDrawing.xsd | 0 .../vml-spreadsheetDrawing.xsd | 0 .../vml-wordprocessingDrawing.xsd | 0 .../ISO-IEC29500-4_2016/wml.xsd | 0 .../ISO-IEC29500-4_2016/xml.xsd | 0 .../schemas => ooxml-schemas}/mce/mc.xsd | 0 .../microsoft/wml-2010.xsd | 0 .../microsoft/wml-2012.xsd | 0 .../microsoft/wml-2018.xsd | 0 .../microsoft/wml-cex-2018.xsd | 0 .../microsoft/wml-cid-2016.xsd | 0 .../microsoft/wml-sdtdatahash-2020.xsd | 0 .../microsoft/wml-symex-2015.xsd | 0 .../microsoft/word12.xsd | 0 package.json | 2 +- .../index.ts => extract-document.ts} | 0 39 files changed, 79 insertions(+), 79 deletions(-) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/dml-chart.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/dml-chartDrawing.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/dml-diagram.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/dml-main.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/dml-picture.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/pml.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-bibliography.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-math.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/shared-relationshipReference.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/sml.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/vml-main.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/vml-officeDrawing.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/wml.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/ISO-IEC29500-4_2016/xml.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/mce/mc.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/microsoft/wml-2010.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/microsoft/wml-2012.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/microsoft/wml-2018.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/microsoft/wml-cex-2018.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/microsoft/wml-cid-2016.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/microsoft/wml-sdtdatahash-2020.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/microsoft/wml-symex-2015.xsd (100%) rename {scripts/schema-validator/schemas => ooxml-schemas}/microsoft/word12.xsd (100%) rename scripts/{schema-validator/index.ts => extract-document.ts} (100%) diff --git a/.github/workflows/schema-validator.yml b/.github/workflows/schema-validator.yml index cd4421d37b..a1b1c20921 100644 --- a/.github/workflows/schema-validator.yml +++ b/.github/workflows/schema-validator.yml @@ -45,7 +45,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/2-declaritive-styles.ts - name: Extract Word Document @@ -54,7 +54,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/3-numbering-and-bullet-points.ts - name: Extract Word Document @@ -63,7 +63,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/4-basic-table.ts - name: Extract Word Document @@ -72,7 +72,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/5-images.ts - name: Extract Word Document @@ -81,7 +81,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/6-page-borders.ts - name: Extract Word Document @@ -90,7 +90,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/7-landscape.ts - name: Extract Word Document @@ -99,7 +99,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/8-header-footer.ts - name: Extract Word Document @@ -108,7 +108,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/9-images-in-header-and-footer.ts - name: Extract Word Document @@ -117,7 +117,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/10-my-cv.ts - name: Extract Word Document @@ -126,7 +126,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/11-declaritive-styles-2.ts - name: Extract Word Document @@ -135,7 +135,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/12-scaling-images.ts - name: Extract Word Document @@ -144,7 +144,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/13-xml-styles.ts - name: Extract Word Document @@ -153,7 +153,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/14-page-numbers.ts - name: Extract Word Document @@ -162,7 +162,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/15-page-break-before.ts - name: Extract Word Document @@ -171,7 +171,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/16-multiple-sections.ts - name: Extract Word Document @@ -180,16 +180,16 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd - - name: Run Demo - run: npm run ts-node -- ./demo/17-footnotes.ts - - name: Extract Word Document - run: npm run extract - - name: Validate XML - uses: ChristophWurst/xmllint-action@v1 - with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + # - name: Run Demo + # run: npm run ts-node -- ./demo/17-footnotes.ts + # - name: Extract Word Document + # run: npm run extract + # - name: Validate XML + # uses: ChristophWurst/xmllint-action@v1 + # with: + # xml-file: build/extracted-doc/word/document.xml + # xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/18-image-from-buffer.ts - name: Extract Word Document @@ -198,7 +198,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/19-export-to-base64.ts - name: Extract Word Document @@ -207,7 +207,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/20-table-cell-borders.ts - name: Extract Word Document @@ -216,7 +216,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/21-bookmarks.ts - name: Extract Word Document @@ -225,7 +225,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/22-right-to-left-text.ts - name: Extract Word Document @@ -234,7 +234,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/23-base64-images.ts - name: Extract Word Document @@ -243,7 +243,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/24-images-to-table-cell.ts - name: Extract Word Document @@ -252,7 +252,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/25-table-xml-styles.ts - name: Extract Word Document @@ -261,7 +261,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/26-paragraph-borders.ts - name: Extract Word Document @@ -270,7 +270,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/27-declaritive-styles-3.ts - name: Extract Word Document @@ -279,7 +279,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/28-table-of-contents.ts - name: Extract Word Document @@ -288,7 +288,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/29-numbered-lists.ts - name: Extract Word Document @@ -297,7 +297,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/30-template-document.ts - name: Extract Word Document @@ -306,7 +306,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/31-tables.ts - name: Extract Word Document @@ -315,7 +315,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/32-merge-and-shade-table-cells.ts - name: Extract Word Document @@ -324,7 +324,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/33-sequential-captions.ts - name: Extract Word Document @@ -333,7 +333,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/34-floating-tables.ts - name: Extract Word Document @@ -342,7 +342,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/35-hyperlinks.ts - name: Extract Word Document @@ -351,7 +351,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/36-image-to-table-cell.ts - name: Extract Word Document @@ -360,7 +360,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/37-images-to-header-and-footer.ts - name: Extract Word Document @@ -369,7 +369,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/38-text-wrapping.ts - name: Extract Word Document @@ -378,7 +378,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/39-page-numbers.ts - name: Extract Word Document @@ -387,7 +387,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/40-line-numbers.ts - name: Extract Word Document @@ -396,7 +396,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/41-merge-table-cells-2.ts - name: Extract Word Document @@ -405,7 +405,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/42-restart-page-numbers.ts - name: Extract Word Document @@ -414,7 +414,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/43-images-to-table-cell-2.ts - name: Extract Word Document @@ -423,7 +423,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/44-multiple-columns.ts - name: Extract Word Document @@ -432,7 +432,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/45-highlighting-text.ts - name: Extract Word Document @@ -441,7 +441,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/46-shading-text.ts - name: Extract Word Document @@ -450,7 +450,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/47-number-of-total-pages-section.ts - name: Extract Word Document @@ -459,7 +459,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/48-vertical-align.ts - name: Extract Word Document @@ -468,7 +468,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/49-table-borders.ts - name: Extract Word Document @@ -477,7 +477,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/50-readme-demo.ts - name: Extract Word Document @@ -486,7 +486,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/51-character-styles.ts - name: Extract Word Document @@ -495,7 +495,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/52-japanese.ts - name: Extract Word Document @@ -504,7 +504,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/53-chinese.ts - name: Extract Word Document @@ -513,7 +513,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/54-custom-properties.ts - name: Extract Word Document @@ -522,7 +522,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/55-math.ts - name: Extract Word Document @@ -531,7 +531,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/56-background-color.ts - name: Extract Word Document @@ -540,7 +540,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/57-add-parent-numbered-lists.ts - name: Extract Word Document @@ -549,7 +549,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/58-section-types.ts - name: Extract Word Document @@ -558,7 +558,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/59-header-footer-margins.ts - name: Extract Word Document @@ -567,7 +567,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/60-track-revisions.ts - name: Extract Word Document @@ -576,7 +576,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/61-text-frame.ts - name: Extract Word Document @@ -585,7 +585,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/62-paragraph-spacing.ts - name: Extract Word Document @@ -594,7 +594,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/63-odd-even-header-footer.ts - name: Extract Word Document @@ -603,7 +603,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/64-complex-numbering-text.ts - name: Extract Word Document @@ -612,7 +612,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/65-page-sizes.ts - name: Extract Word Document @@ -621,7 +621,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/66-fields.ts - name: Extract Word Document @@ -630,7 +630,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/67-column-break.ts - name: Extract Word Document @@ -639,7 +639,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/68-numbering-instances-and-starting-number.ts - name: Extract Word Document @@ -648,7 +648,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/69-different-width-columns.ts - name: Extract Word Document @@ -657,7 +657,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/70-line-numbers-suppression.ts - name: Extract Word Document @@ -666,4 +666,4 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: scripts/schema-validator/schemas/microsoft/wml-2010.xsd + xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chart.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/dml-chart.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chart.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/dml-chart.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/dml-diagram.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/dml-diagram.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-main.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/dml-main.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-main.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/dml-main.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-picture.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/dml-picture.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-picture.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/dml-picture.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/pml.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/pml.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/pml.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/pml.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-math.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-math.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-math.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-math.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/sml.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/sml.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/sml.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/sml.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-main.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/vml-main.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-main.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/vml-main.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/wml.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/wml.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/wml.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/wml.xsd diff --git a/scripts/schema-validator/schemas/ISO-IEC29500-4_2016/xml.xsd b/ooxml-schemas/ISO-IEC29500-4_2016/xml.xsd similarity index 100% rename from scripts/schema-validator/schemas/ISO-IEC29500-4_2016/xml.xsd rename to ooxml-schemas/ISO-IEC29500-4_2016/xml.xsd diff --git a/scripts/schema-validator/schemas/mce/mc.xsd b/ooxml-schemas/mce/mc.xsd similarity index 100% rename from scripts/schema-validator/schemas/mce/mc.xsd rename to ooxml-schemas/mce/mc.xsd diff --git a/scripts/schema-validator/schemas/microsoft/wml-2010.xsd b/ooxml-schemas/microsoft/wml-2010.xsd similarity index 100% rename from scripts/schema-validator/schemas/microsoft/wml-2010.xsd rename to ooxml-schemas/microsoft/wml-2010.xsd diff --git a/scripts/schema-validator/schemas/microsoft/wml-2012.xsd b/ooxml-schemas/microsoft/wml-2012.xsd similarity index 100% rename from scripts/schema-validator/schemas/microsoft/wml-2012.xsd rename to ooxml-schemas/microsoft/wml-2012.xsd diff --git a/scripts/schema-validator/schemas/microsoft/wml-2018.xsd b/ooxml-schemas/microsoft/wml-2018.xsd similarity index 100% rename from scripts/schema-validator/schemas/microsoft/wml-2018.xsd rename to ooxml-schemas/microsoft/wml-2018.xsd diff --git a/scripts/schema-validator/schemas/microsoft/wml-cex-2018.xsd b/ooxml-schemas/microsoft/wml-cex-2018.xsd similarity index 100% rename from scripts/schema-validator/schemas/microsoft/wml-cex-2018.xsd rename to ooxml-schemas/microsoft/wml-cex-2018.xsd diff --git a/scripts/schema-validator/schemas/microsoft/wml-cid-2016.xsd b/ooxml-schemas/microsoft/wml-cid-2016.xsd similarity index 100% rename from scripts/schema-validator/schemas/microsoft/wml-cid-2016.xsd rename to ooxml-schemas/microsoft/wml-cid-2016.xsd diff --git a/scripts/schema-validator/schemas/microsoft/wml-sdtdatahash-2020.xsd b/ooxml-schemas/microsoft/wml-sdtdatahash-2020.xsd similarity index 100% rename from scripts/schema-validator/schemas/microsoft/wml-sdtdatahash-2020.xsd rename to ooxml-schemas/microsoft/wml-sdtdatahash-2020.xsd diff --git a/scripts/schema-validator/schemas/microsoft/wml-symex-2015.xsd b/ooxml-schemas/microsoft/wml-symex-2015.xsd similarity index 100% rename from scripts/schema-validator/schemas/microsoft/wml-symex-2015.xsd rename to ooxml-schemas/microsoft/wml-symex-2015.xsd diff --git a/scripts/schema-validator/schemas/microsoft/word12.xsd b/ooxml-schemas/microsoft/word12.xsd similarity index 100% rename from scripts/schema-validator/schemas/microsoft/word12.xsd rename to ooxml-schemas/microsoft/word12.xsd diff --git a/package.json b/package.json index f19f15abec..ee2567f83d 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "fix-types": "ts-node scripts/types-absolute-fixer.ts", "e2e": "ts-node scripts/e2e.ts", "serve.docs": "cd docs && docsify serve", - "extract": "ts-node scripts/schema-validator", + "extract": "ts-node scripts/extract-document.ts", "ts-node": "ts-node --skip-project" }, "pre-commit": [ diff --git a/scripts/schema-validator/index.ts b/scripts/extract-document.ts similarity index 100% rename from scripts/schema-validator/index.ts rename to scripts/extract-document.ts From 0f273c5aaf3544f18dc0e2f3c1e30c514be03afa Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:41:21 +0100 Subject: [PATCH 08/18] Fix schema --- .github/workflows/schema-validator.yml | 140 ++++++++++++------------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/.github/workflows/schema-validator.yml b/.github/workflows/schema-validator.yml index a1b1c20921..f604313192 100644 --- a/.github/workflows/schema-validator.yml +++ b/.github/workflows/schema-validator.yml @@ -45,7 +45,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/2-declaritive-styles.ts - name: Extract Word Document @@ -54,7 +54,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/3-numbering-and-bullet-points.ts - name: Extract Word Document @@ -63,7 +63,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/4-basic-table.ts - name: Extract Word Document @@ -72,7 +72,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/5-images.ts - name: Extract Word Document @@ -81,7 +81,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/6-page-borders.ts - name: Extract Word Document @@ -90,7 +90,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/7-landscape.ts - name: Extract Word Document @@ -99,7 +99,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/8-header-footer.ts - name: Extract Word Document @@ -108,7 +108,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/9-images-in-header-and-footer.ts - name: Extract Word Document @@ -117,7 +117,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/10-my-cv.ts - name: Extract Word Document @@ -126,7 +126,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/11-declaritive-styles-2.ts - name: Extract Word Document @@ -135,7 +135,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/12-scaling-images.ts - name: Extract Word Document @@ -144,7 +144,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/13-xml-styles.ts - name: Extract Word Document @@ -153,7 +153,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/14-page-numbers.ts - name: Extract Word Document @@ -162,7 +162,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/15-page-break-before.ts - name: Extract Word Document @@ -171,7 +171,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/16-multiple-sections.ts - name: Extract Word Document @@ -180,7 +180,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd # - name: Run Demo # run: npm run ts-node -- ./demo/17-footnotes.ts # - name: Extract Word Document @@ -189,7 +189,7 @@ jobs: # uses: ChristophWurst/xmllint-action@v1 # with: # xml-file: build/extracted-doc/word/document.xml - # xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/18-image-from-buffer.ts - name: Extract Word Document @@ -198,7 +198,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/19-export-to-base64.ts - name: Extract Word Document @@ -207,7 +207,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/20-table-cell-borders.ts - name: Extract Word Document @@ -216,7 +216,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/21-bookmarks.ts - name: Extract Word Document @@ -225,7 +225,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/22-right-to-left-text.ts - name: Extract Word Document @@ -234,7 +234,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/23-base64-images.ts - name: Extract Word Document @@ -243,7 +243,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/24-images-to-table-cell.ts - name: Extract Word Document @@ -252,7 +252,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/25-table-xml-styles.ts - name: Extract Word Document @@ -261,7 +261,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/26-paragraph-borders.ts - name: Extract Word Document @@ -270,7 +270,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/27-declaritive-styles-3.ts - name: Extract Word Document @@ -279,7 +279,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/28-table-of-contents.ts - name: Extract Word Document @@ -288,7 +288,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/29-numbered-lists.ts - name: Extract Word Document @@ -297,7 +297,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/30-template-document.ts - name: Extract Word Document @@ -306,7 +306,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/31-tables.ts - name: Extract Word Document @@ -315,7 +315,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/32-merge-and-shade-table-cells.ts - name: Extract Word Document @@ -324,7 +324,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/33-sequential-captions.ts - name: Extract Word Document @@ -333,7 +333,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/34-floating-tables.ts - name: Extract Word Document @@ -342,7 +342,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/35-hyperlinks.ts - name: Extract Word Document @@ -351,7 +351,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/36-image-to-table-cell.ts - name: Extract Word Document @@ -360,7 +360,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/37-images-to-header-and-footer.ts - name: Extract Word Document @@ -369,7 +369,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/38-text-wrapping.ts - name: Extract Word Document @@ -378,7 +378,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/39-page-numbers.ts - name: Extract Word Document @@ -387,7 +387,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/40-line-numbers.ts - name: Extract Word Document @@ -396,7 +396,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/41-merge-table-cells-2.ts - name: Extract Word Document @@ -405,7 +405,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/42-restart-page-numbers.ts - name: Extract Word Document @@ -414,7 +414,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/43-images-to-table-cell-2.ts - name: Extract Word Document @@ -423,7 +423,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/44-multiple-columns.ts - name: Extract Word Document @@ -432,7 +432,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/45-highlighting-text.ts - name: Extract Word Document @@ -441,7 +441,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/46-shading-text.ts - name: Extract Word Document @@ -450,7 +450,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/47-number-of-total-pages-section.ts - name: Extract Word Document @@ -459,7 +459,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/48-vertical-align.ts - name: Extract Word Document @@ -468,7 +468,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/49-table-borders.ts - name: Extract Word Document @@ -477,7 +477,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/50-readme-demo.ts - name: Extract Word Document @@ -486,7 +486,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/51-character-styles.ts - name: Extract Word Document @@ -495,7 +495,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/52-japanese.ts - name: Extract Word Document @@ -504,7 +504,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/53-chinese.ts - name: Extract Word Document @@ -513,7 +513,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/54-custom-properties.ts - name: Extract Word Document @@ -522,7 +522,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/55-math.ts - name: Extract Word Document @@ -531,7 +531,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/56-background-color.ts - name: Extract Word Document @@ -540,7 +540,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/57-add-parent-numbered-lists.ts - name: Extract Word Document @@ -549,7 +549,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/58-section-types.ts - name: Extract Word Document @@ -558,7 +558,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/59-header-footer-margins.ts - name: Extract Word Document @@ -567,7 +567,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/60-track-revisions.ts - name: Extract Word Document @@ -576,7 +576,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/61-text-frame.ts - name: Extract Word Document @@ -585,7 +585,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/62-paragraph-spacing.ts - name: Extract Word Document @@ -594,7 +594,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/63-odd-even-header-footer.ts - name: Extract Word Document @@ -603,7 +603,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/64-complex-numbering-text.ts - name: Extract Word Document @@ -612,7 +612,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/65-page-sizes.ts - name: Extract Word Document @@ -621,7 +621,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/66-fields.ts - name: Extract Word Document @@ -630,7 +630,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/67-column-break.ts - name: Extract Word Document @@ -639,7 +639,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/68-numbering-instances-and-starting-number.ts - name: Extract Word Document @@ -648,7 +648,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/69-different-width-columns.ts - name: Extract Word Document @@ -657,7 +657,7 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/70-line-numbers-suppression.ts - name: Extract Word Document @@ -666,4 +666,4 @@ jobs: uses: ChristophWurst/xmllint-action@v1 with: xml-file: build/extracted-doc/word/document.xml - xml-schema-file: /ooxml-schemas/microsoft/wml-2010.xsd + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd From cc6c696d9931f1e4048951d97a2ea315daf43d13 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:47:38 +0100 Subject: [PATCH 09/18] Ignore demo --- .github/workflows/schema-validator.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/schema-validator.yml b/.github/workflows/schema-validator.yml index f604313192..e82d0b1fe0 100644 --- a/.github/workflows/schema-validator.yml +++ b/.github/workflows/schema-validator.yml @@ -217,15 +217,16 @@ jobs: with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - - name: Run Demo - run: npm run ts-node -- ./demo/21-bookmarks.ts - - name: Extract Word Document - run: npm run extract - - name: Validate XML - uses: ChristophWurst/xmllint-action@v1 - with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + # Bad ID - need numeric ID + # - name: Run Demo + # run: npm run ts-node -- ./demo/21-bookmarks.ts + # - name: Extract Word Document + # run: npm run extract + # - name: Validate XML + # uses: ChristophWurst/xmllint-action@v1 + # with: + # xml-file: build/extracted-doc/word/document.xml + # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/22-right-to-left-text.ts - name: Extract Word Document From d3035a29b8196d2280b246a54cbe40f609eef5a8 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:48:32 +0100 Subject: [PATCH 10/18] Re-name pipeline --- .github/workflows/{schema-validator.yml => demos.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{schema-validator.yml => demos.yml} (99%) diff --git a/.github/workflows/schema-validator.yml b/.github/workflows/demos.yml similarity index 99% rename from .github/workflows/schema-validator.yml rename to .github/workflows/demos.yml index e82d0b1fe0..711af9307b 100644 --- a/.github/workflows/schema-validator.yml +++ b/.github/workflows/demos.yml @@ -1,4 +1,4 @@ -name: Schema Validator +name: Demos on: push: branches: From cdc82268e61f41c683582aca442ae4f7eccf1b5f Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 00:59:06 +0100 Subject: [PATCH 11/18] Try simplify demos --- .github/workflows/demos.yml | 42 +++++++++++++------------------------ 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index 711af9307b..b588681258 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -8,35 +8,18 @@ on: - master jobs: - build: - name: Build + install: + name: Install runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@master - name: Install Dependencies run: npm ci - - name: Build - run: npm run build - - name: Archive Production Artifact - uses: actions/upload-artifact@master - with: - name: build - path: build demos: name: Run Demos and Validate - needs: [build] runs-on: ubuntu-latest steps: - - name: Checkout Repo - uses: actions/checkout@master - - name: Install Dependencies - run: npm ci - - name: Download Artifact - uses: actions/download-artifact@master - with: - name: build - path: build - name: Run Demo run: npm run ts-node -- ./demo/1-basic.ts - name: Extract Word Document @@ -181,6 +164,7 @@ jobs: with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + # element r: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}r': This element is not expected. # - name: Run Demo # run: npm run ts-node -- ./demo/17-footnotes.ts # - name: Extract Word Document @@ -335,15 +319,17 @@ jobs: with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - - name: Run Demo - run: npm run ts-node -- ./demo/34-floating-tables.ts - - name: Extract Word Document - run: npm run extract - - name: Validate XML - uses: ChristophWurst/xmllint-action@v1 - with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + # element tblpPr: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblpPr', attribute 'overlap': The attribute 'overlap' is not allowed. + # element tblpPr: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblpPr': Element content is not allowed, because the content type is empty. + # - name: Run Demo + # run: npm run ts-node -- ./demo/34-floating-tables.ts + # - name: Extract Word Document + # run: npm run extract + # - name: Validate XML + # uses: ChristophWurst/xmllint-action@v1 + # with: + # xml-file: build/extracted-doc/word/document.xml + # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/35-hyperlinks.ts - name: Extract Word Document From bf5e6cfa5739c0c4d707515749949c44178d452c Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 01:04:21 +0100 Subject: [PATCH 12/18] Try fix yml again --- .github/workflows/demos.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index b588681258..991fb23cd9 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -8,18 +8,14 @@ on: - master jobs: - install: - name: Install + demos: + name: Run Demos and Validate runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@master - name: Install Dependencies run: npm ci - demos: - name: Run Demos and Validate - runs-on: ubuntu-latest - steps: - name: Run Demo run: npm run ts-node -- ./demo/1-basic.ts - name: Extract Word Document From a7b9dc773041f7529c574b962648fb219a484f51 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 01:06:37 +0100 Subject: [PATCH 13/18] Revert yml --- .github/workflows/demos.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index 991fb23cd9..4e50178c4a 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -8,14 +8,35 @@ on: - master jobs: - demos: - name: Run Demos and Validate + build: + name: Build runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@master - name: Install Dependencies run: npm ci + - name: Build + run: npm run build + - name: Archive Production Artifact + uses: actions/upload-artifact@master + with: + name: build + path: build + demos: + name: Run Demos and Validate + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Install Dependencies + run: npm ci + - name: Download Artifact + uses: actions/download-artifact@master + with: + name: build + path: build - name: Run Demo run: npm run ts-node -- ./demo/1-basic.ts - name: Extract Word Document From 9ea940d2ca6d2d8a12b99e70244ef24b11f528f1 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 01:23:00 +0100 Subject: [PATCH 14/18] Exclude demo 55 from validation --- .github/workflows/demos.yml | 38 ++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index 4e50178c4a..09adae8975 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -181,11 +181,11 @@ jobs: with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/17-footnotes.ts + - name: Extract Word Document + run: npm run extract # element r: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}r': This element is not expected. - # - name: Run Demo - # run: npm run ts-node -- ./demo/17-footnotes.ts - # - name: Extract Word Document - # run: npm run extract # - name: Validate XML # uses: ChristophWurst/xmllint-action@v1 # with: @@ -218,11 +218,11 @@ jobs: with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/21-bookmarks.ts + - name: Extract Word Document + run: npm run extract # Bad ID - need numeric ID - # - name: Run Demo - # run: npm run ts-node -- ./demo/21-bookmarks.ts - # - name: Extract Word Document - # run: npm run extract # - name: Validate XML # uses: ChristophWurst/xmllint-action@v1 # with: @@ -336,12 +336,12 @@ jobs: with: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + - name: Run Demo + run: npm run ts-node -- ./demo/34-floating-tables.ts + - name: Extract Word Document + run: npm run extract # element tblpPr: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblpPr', attribute 'overlap': The attribute 'overlap' is not allowed. # element tblpPr: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblpPr': Element content is not allowed, because the content type is empty. - # - name: Run Demo - # run: npm run ts-node -- ./demo/34-floating-tables.ts - # - name: Extract Word Document - # run: npm run extract # - name: Validate XML # uses: ChristophWurst/xmllint-action@v1 # with: @@ -531,11 +531,15 @@ jobs: run: npm run ts-node -- ./demo/55-math.ts - name: Extract Word Document run: npm run extract - - name: Validate XML - uses: ChristophWurst/xmllint-action@v1 - with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + #: element subHide: Schemas validity error : Element '{http://schemas.openxmlformats.org/officeDocument/2006/math}subHide': This element is not expected. Expected is ( {http://schemas.openxmlformats.org/officeDocument/2006/math}ctrlPr ). + #: element e: Schemas validity error : Element '{http://schemas.openxmlformats.org/officeDocument/2006/math}e': This element is not expected. Expected is ( {http://schemas.openxmlformats.org/officeDocument/2006/math}sub ). + #: element e: Schemas validity error : Element '{http://schemas.openxmlformats.org/officeDocument/2006/math}e': This element is not expected. Expected is ( {http://schemas.openxmlformats.org/officeDocument/2006/math}sup ). + #: element e: Schemas validity error : Element '{http://schemas.openxmlformats.org/officeDocument/2006/math}e': This element is not expected. Expected is ( {http://schemas.openxmlformats.org/officeDocument/2006/math}sub ). + # - name: Validate XML + # uses: ChristophWurst/xmllint-action@v1 + # with: + # xml-file: build/extracted-doc/word/document.xml + # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/56-background-color.ts - name: Extract Word Document From 133761a266785eeeae9f3652c058375d8fbac82f Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 01:58:34 +0100 Subject: [PATCH 15/18] Exclude demo 60 --- .github/workflows/demos.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index 09adae8975..b0e8b48ffb 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -580,11 +580,12 @@ jobs: run: npm run ts-node -- ./demo/60-track-revisions.ts - name: Extract Word Document run: npm run extract - - name: Validate XML - uses: ChristophWurst/xmllint-action@v1 - with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + # element r: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}r': This element is not expected. + # - name: Validate XML + # uses: ChristophWurst/xmllint-action@v1 + # with: + # xml-file: build/extracted-doc/word/document.xml + # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/61-text-frame.ts - name: Extract Word Document From 740f10f3915ad69548cbd09ee28cdfd4214ce712 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 02:26:07 +0100 Subject: [PATCH 16/18] Exclude demo 61 --- .github/workflows/demos.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index b0e8b48ffb..9a3a792873 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -590,11 +590,12 @@ jobs: run: npm run ts-node -- ./demo/61-text-frame.ts - name: Extract Word Document run: npm run extract - - name: Validate XML - uses: ChristophWurst/xmllint-action@v1 - with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + # element left: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}left': This element is not expected. Expected is one of ( {http://schemas.openxmlformats.org/wordprocessingml/2006/main}right, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}between, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}bar ). + # - name: Validate XML + # uses: ChristophWurst/xmllint-action@v1 + # with: + # xml-file: build/extracted-doc/word/document.xml + # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/62-paragraph-spacing.ts - name: Extract Word Document From bc2b677c86b28f9ba52fdbc8f331b7275973e24b Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 02:42:50 +0100 Subject: [PATCH 17/18] Exclude demo 66 --- .github/workflows/demos.yml | 264 ++++++++++++++++++------------------ 1 file changed, 133 insertions(+), 131 deletions(-) diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index 9a3a792873..176049294c 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -44,8 +44,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/2-declaritive-styles.ts - name: Extract Word Document @@ -53,8 +53,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/3-numbering-and-bullet-points.ts - name: Extract Word Document @@ -62,8 +62,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/4-basic-table.ts - name: Extract Word Document @@ -71,8 +71,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/5-images.ts - name: Extract Word Document @@ -80,8 +80,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/6-page-borders.ts - name: Extract Word Document @@ -89,8 +89,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/7-landscape.ts - name: Extract Word Document @@ -98,8 +98,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/8-header-footer.ts - name: Extract Word Document @@ -107,8 +107,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/9-images-in-header-and-footer.ts - name: Extract Word Document @@ -116,8 +116,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/10-my-cv.ts - name: Extract Word Document @@ -125,8 +125,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/11-declaritive-styles-2.ts - name: Extract Word Document @@ -134,8 +134,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/12-scaling-images.ts - name: Extract Word Document @@ -143,8 +143,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/13-xml-styles.ts - name: Extract Word Document @@ -152,8 +152,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/14-page-numbers.ts - name: Extract Word Document @@ -161,8 +161,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/15-page-break-before.ts - name: Extract Word Document @@ -170,8 +170,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/16-multiple-sections.ts - name: Extract Word Document @@ -179,8 +179,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/17-footnotes.ts - name: Extract Word Document @@ -198,8 +198,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/19-export-to-base64.ts - name: Extract Word Document @@ -207,8 +207,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/20-table-cell-borders.ts - name: Extract Word Document @@ -216,8 +216,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/21-bookmarks.ts - name: Extract Word Document @@ -235,8 +235,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/23-base64-images.ts - name: Extract Word Document @@ -244,8 +244,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/24-images-to-table-cell.ts - name: Extract Word Document @@ -253,8 +253,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/25-table-xml-styles.ts - name: Extract Word Document @@ -262,8 +262,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/26-paragraph-borders.ts - name: Extract Word Document @@ -271,8 +271,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/27-declaritive-styles-3.ts - name: Extract Word Document @@ -280,8 +280,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/28-table-of-contents.ts - name: Extract Word Document @@ -289,8 +289,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/29-numbered-lists.ts - name: Extract Word Document @@ -298,8 +298,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/30-template-document.ts - name: Extract Word Document @@ -307,8 +307,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/31-tables.ts - name: Extract Word Document @@ -316,8 +316,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/32-merge-and-shade-table-cells.ts - name: Extract Word Document @@ -325,8 +325,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/33-sequential-captions.ts - name: Extract Word Document @@ -334,8 +334,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/34-floating-tables.ts - name: Extract Word Document @@ -354,8 +354,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/36-image-to-table-cell.ts - name: Extract Word Document @@ -363,8 +363,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/37-images-to-header-and-footer.ts - name: Extract Word Document @@ -372,8 +372,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/38-text-wrapping.ts - name: Extract Word Document @@ -381,8 +381,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/39-page-numbers.ts - name: Extract Word Document @@ -390,8 +390,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/40-line-numbers.ts - name: Extract Word Document @@ -399,8 +399,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/41-merge-table-cells-2.ts - name: Extract Word Document @@ -408,8 +408,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/42-restart-page-numbers.ts - name: Extract Word Document @@ -417,8 +417,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/43-images-to-table-cell-2.ts - name: Extract Word Document @@ -426,8 +426,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/44-multiple-columns.ts - name: Extract Word Document @@ -435,8 +435,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/45-highlighting-text.ts - name: Extract Word Document @@ -444,8 +444,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/46-shading-text.ts - name: Extract Word Document @@ -453,8 +453,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/47-number-of-total-pages-section.ts - name: Extract Word Document @@ -462,8 +462,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/48-vertical-align.ts - name: Extract Word Document @@ -471,8 +471,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/49-table-borders.ts - name: Extract Word Document @@ -480,8 +480,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/50-readme-demo.ts - name: Extract Word Document @@ -489,8 +489,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/51-character-styles.ts - name: Extract Word Document @@ -498,8 +498,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/52-japanese.ts - name: Extract Word Document @@ -507,8 +507,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/53-chinese.ts - name: Extract Word Document @@ -516,8 +516,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/54-custom-properties.ts - name: Extract Word Document @@ -525,8 +525,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/55-math.ts - name: Extract Word Document @@ -547,8 +547,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/57-add-parent-numbered-lists.ts - name: Extract Word Document @@ -556,8 +556,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/58-section-types.ts - name: Extract Word Document @@ -565,8 +565,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/59-header-footer-margins.ts - name: Extract Word Document @@ -574,8 +574,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/60-track-revisions.ts - name: Extract Word Document @@ -603,8 +603,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/63-odd-even-header-footer.ts - name: Extract Word Document @@ -612,8 +612,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/64-complex-numbering-text.ts - name: Extract Word Document @@ -621,8 +621,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/65-page-sizes.ts - name: Extract Word Document @@ -630,17 +630,19 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/66-fields.ts - name: Extract Word Document run: npm run extract - - name: Validate XML - uses: ChristophWurst/xmllint-action@v1 - with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + # element bookmarkStart: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}bookmarkStart', attribute '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}id': '-irrswq-ln94j4fdgdjxs' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber'. + # element bookmarkEnd: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}bookmarkEnd', attribute '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}id': '-irrswq-ln94j4fdgdjxs' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber'. + # - name: Validate XML + # uses: ChristophWurst/xmllint-action@v1 + # with: + # xml-file: build/extracted-doc/word/document.xml + # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/67-column-break.ts - name: Extract Word Document @@ -648,8 +650,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/68-numbering-instances-and-starting-number.ts - name: Extract Word Document @@ -657,8 +659,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/69-different-width-columns.ts - name: Extract Word Document @@ -666,8 +668,8 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo run: npm run ts-node -- ./demo/70-line-numbers-suppression.ts - name: Extract Word Document @@ -675,5 +677,5 @@ jobs: - name: Validate XML uses: ChristophWurst/xmllint-action@v1 with: - xml-file: build/extracted-doc/word/document.xml - xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd + xml-file: build/extracted-doc/word/document.xml + xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd From 1cf9255f3dedf84b1ff00bdac383b73984acbc61 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Thu, 30 Sep 2021 02:55:47 +0100 Subject: [PATCH 18/18] Fix demo 68 --- demo/68-numbering-instances-and-starting-number.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/68-numbering-instances-and-starting-number.ts b/demo/68-numbering-instances-and-starting-number.ts index 67fb1cdc3b..ac4975ba22 100644 --- a/demo/68-numbering-instances-and-starting-number.ts +++ b/demo/68-numbering-instances-and-starting-number.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import { Document, Packer, Paragraph, PageNumberFormat } from "../build"; +import { Document, Packer, Paragraph, LevelFormat } from "../build"; const doc = new Document({ numbering: { @@ -9,7 +9,7 @@ const doc = new Document({ levels: [ { level: 0, - format: PageNumberFormat.DECIMAL, + format: LevelFormat.DECIMAL, text: "%1", start: 10, }, @@ -20,7 +20,7 @@ const doc = new Document({ levels: [ { level: 0, - format: PageNumberFormat.DECIMAL, + format: LevelFormat.DECIMAL, text: "%1", }, ],