diff options
author | 2009-07-16 01:14:28 +0200 | |
---|---|---|
committer | 2009-07-16 01:14:28 +0200 | |
commit | 74c6f3ab87aa70733b7fbf38d6004ddbe5d32371 (patch) | |
tree | ac213b598df324d9c53c662ddc68e2295db42abb /validate.sh | |
parent | Add initial DTD and Relax NG schema (diff) | |
download | repositories-xml-format-74c6f3ab87aa70733b7fbf38d6004ddbe5d32371.tar.gz repositories-xml-format-74c6f3ab87aa70733b7fbf38d6004ddbe5d32371.tar.bz2 repositories-xml-format-74c6f3ab87aa70733b7fbf38d6004ddbe5d32371.zip |
Add simple validation script
Diffstat (limited to 'validate.sh')
-rwxr-xr-x | validate.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validate.sh b/validate.sh new file mode 100755 index 0000000..d944a26 --- /dev/null +++ b/validate.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +echo '== DTD ==' +xmllint --noout --dtdvalid overlays.dtd overlays.xml \ + && echo VALID \ + || echo BROKEN +echo + +echo '== Relax NG ==' +xmllint --noout --relaxng overlays.rng overlays.xml \ + && echo VALID \ + || echo BROKEN +echo |