diff options
| author | John MacFarlane <[email protected]> | 2023-12-18 12:25:53 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-12-18 12:25:53 -0800 |
| commit | eb387c699257a890f541c7c61da792c5bd4f0ee7 (patch) | |
| tree | faef0d7feec0c6e0bf65ec2548e2762e792b062c /tools | |
| parent | 4db6661fe50902939e7856f42b2843b27d5abad8 (diff) | |
Modify validate-docx.sh to check ALL xml files in the docx container.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/validate-docx.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/validate-docx.sh b/tools/validate-docx.sh index d27d8c5a0..09ed1a2f5 100644 --- a/tools/validate-docx.sh +++ b/tools/validate-docx.sh @@ -10,11 +10,11 @@ for file in "$@"; do echo "*** Checking $file" rm -rf "$tmpdir" unzip -q -o -j "$file" -d "$tmpdir" - for i in comments document fontTable footnotes numbering settings styles theme1 webSettings; do - xmllint --format "$tmpdir/${i}.xml" > "$tmpdir/${i}-pretty.xml" + for i in "$tmpdir"/*.xml; do + xmllint --format "${i}" > "${i}.pretty.xml" done XSD="./docx-validator/schemas/microsoft/wml-2010.xsd" - for i in "$tmpdir"/*-pretty.xml; do + for i in "$tmpdir"/*.pretty.xml; do xmllint -noout -nonet \ -schema "${XSD}" \ "${i}" 2>&1 || file_errors=$((file_errors + 1)) |
