echo `date --iso-8601=date` >> transform.log
NOW=`tail -1 transform.log`
cd html
saxon -o index.html ../greene_composite-08.xml ../avery-30.xsl
saxon -o ../thmbrps-$NOW.txt ../greene_composite-08.xml ../exfiles-05.xsl 2> ../captypes.txt
#This can take a while; should probably switch on and off as desired
saxon ../greene_composite-08.xml ../subjindex-07.xsl
sort ../captypes.txt | sort | uniq -c | sort -r > ../capcnts.txt

for file in `ls *.html`
do
 
  perl -w ../postproc.perl $file > temp/$file
  cp temp/$file $file

done

cd subs
for FILE in `ls *.html`
do

  perl -w ../../postproc.perl $FILE > temp/$FILE
  cp temp/$FILE $FILE

done
