echo "Validating LatinMoses.xml"
xmlstarlet val -e -d tei_ms.dtd LatinMoses.xml
echo "Creating Text HTML derivative (LatinMoses.html)"
java -jar /home/thanneken/git/teic/Stylesheets/lib/saxon9he.jar -s:LatinMoses.xml -xsl:tei2html.xsl -o:LatinMoses.html -dtd:on
echo "Asking tidy to check and format"
tidy -qe LatinMoses.html
tidy -qmi -w 200 LatinMoses.html
echo "Creating IIIF Manifest (LatinMoses.json)"
java -jar /home/thanneken/git/teic/Stylesheets/lib/saxon9he.jar -s:LatinMoses.xml -xsl:tei2iiif.xsl -o:LatinMoses.json -dtd:on
echo "Creating IIIF Annotations (aXXX.json)"
java -jar /home/thanneken/git/teic/Stylesheets/lib/saxon9he.jar -s:LatinMoses.xml -xsl:tei2annotations.xsl -dtd:on
echo "Creating Latex derivative (LatinMoses-auto.latex)"
java -jar /home/thanneken/git/teic/Stylesheets/lib/saxon9he.jar -s:LatinMoses.xml -xsl:tei2latex.xsl -o:LatinMoses-auto.latex -dtd:on
echo "Done deriving from LatinMoses.xml"

