https://github.com/TEIC/TEI
Raw File
Tip revision: f18deffba5e240500867e42821dabcf57010bd73 authored by Syd Bauman on 04 April 2023, 15:47:54 UTC
Release 4.6.0
Tip revision: f18deff
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
back to top