# Schematron preparation
# Usage: prepare-sch sch-instance
echo :: Preparing $1.sch as an XSLT stylesheet...
sh ../utility/xslt.sh $1.sch ../utility/iso_schematron_assembly.xsl $1.assy.sch >prepare-sch.txt
if [ $? -eq 0 ]
then echo :: No Schematron assembly errors
else cat prepare-sch.txt; exit 1
fi
# echo :: Preparing documentation...
# sh ../utility/xslt.sh $1.assy.sch ../utility/UBL-Schematron-terminator.xsl $1.xsl 2>prepare-sch.txt
# if [ $? -eq 0 ]
# then echo :: No XSLT stylesheet preparation errors
# else cat prepare-sch.txt; exit 1
# fi