https://github.com/TEIC/TEI
Raw File
Tip revision: 6f86eb3006d815bb183e0d0d8f94a9b3357d38a4 authored by Syd Bauman on 10 September 2014, 03:37:43 UTC
Tag this version which has Schematron code in biblStruct.xml for deprecating <idno> as a direct child of <biblStruct>. I can't implement this for the upcoming release, as we have 29 cases of biblStruct/idno in P5's own bibliogrraphy.
Tip revision: 6f86eb3
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
	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