summaryrefslogtreecommitdiffstats
path: root/test/w3c/convert-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/w3c/convert-tests.sh')
-rwxr-xr-xtest/w3c/convert-tests.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/w3c/convert-tests.sh b/test/w3c/convert-tests.sh
index a8357aa..ea624ea 100755
--- a/test/w3c/convert-tests.sh
+++ b/test/w3c/convert-tests.sh
@@ -23,4 +23,12 @@ cp txml/*.txt ecma/
cp txml/*.txt xpath/
find ./ecma -type f -exec grep -Ili 'datamodel="xpath"' {} \; |xargs rm -fv
-find ./xpath -type f -exec grep -Ili 'datamodel="ecmascript"' {} \; |xargs rm -fv \ No newline at end of file
+find ./xpath -type f -exec grep -Ili 'datamodel="ecmascript"' {} \; |xargs rm -fv
+
+SCXMLS=`find . -type f -name '*.scxml'`
+for SCXML in $SCXMLS
+do
+ mv $SCXML $SCXML.unformatted.xml
+ xmllint --format $SCXML.unformatted.xml > $SCXML
+ rm $SCXML.unformatted.xml
+done