Revision 9d3cb802cf841b9e2a0a6902181513fa187de5f0 authored by Peter Stadler on 17 January 2020, 13:13:50 UTC, committed by Peter Stadler on 17 January 2020, 13:13:50 UTC
1 parent 97eac77
run-onvdl
#!/bin/sh
# onvdl seems to report an "unfinished element" every
# time a required child element from another namespace occurs
# in the instance. In our case, this happens every time there
# is an <egXML> child of <exemplum>. Since the error message is
# non-specific (doesn't tell us that <exemplum> is the
# unfinished element or that one of <eg> or <egXML> would be
# required to make it finished) we end up throwing out all such
# messages via the grep -v command so we're not annoyed by the
# over 800 that are not really problems.
if which onvdl
then
onvdl $1 $2 | grep -v "fatal: exception .com.oxygenxml.validate.isoschematron" > $$.nvdl.log
else
if test ! -f oNVDL/bin/onvdl.jar
then
#MDH 2016-12-03: ONVDL now missing from Oxygen site, but George Bina has a download on SF
echo download ONVDL from http://downloads.sourceforge.net/project/onvdl/onvdl/20070517/onvdl-20070517.zip
curl -L -s -O http://downloads.sourceforge.net/project/onvdl/onvdl/20070517/onvdl-20070517.zip
#echo download ONVDL from http://www.oxygenxml.com/InstData/Editor/onvdl/onvdl-20070517.zip
#curl -s -O http://www.oxygenxml.com/InstData/Editor/onvdl/onvdl-20070517.zip
unzip -q onvdl-20070517.zip oNVDL/bin/*
rm onvdl-20070517.zip
fi
java -Xmx1200m -jar oNVDL/bin/onvdl.jar $1 $2 | grep -v "fatal: exception .com.oxygenxml.validate.isoschematron" > $$.nvdl.log
fi
grep error $$.nvdl.log
if [ $? -eq 0 ]
then
cat $$.nvdl.log
rm $$.nvdl.log
echo Error: nvdl run found problems
exit 1
else
cat $$.nvdl.log
rm $$.nvdl.log
exit 0
fi
Computing file changes ...