aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-12-18 12:25:53 -0800
committerJohn MacFarlane <[email protected]>2023-12-18 12:25:53 -0800
commiteb387c699257a890f541c7c61da792c5bd4f0ee7 (patch)
treefaef0d7feec0c6e0bf65ec2548e2762e792b062c /tools
parent4db6661fe50902939e7856f42b2843b27d5abad8 (diff)
Modify validate-docx.sh to check ALL xml files in the docx container.
Diffstat (limited to 'tools')
-rw-r--r--tools/validate-docx.sh6
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))