#!/bin/sh

echo -n $1
xmltosaxtofi $1 > $1.sax.finf
saxtosaxevent $1 > $1.sax-event
saxtosaxevent $1.sax.finf > $1.sax.finf.sax-event
diff $1.sax-event $1.sax.finf.sax-event > $1.sax.sax-event.diff
if [ -s $1.sax.sax-event.diff ]; then
	#echo : FAILED, see $1.sax.sax-event.diff
#	cp $1 sax_failed/
        report ${FIRTT_DATA} $3 $1 $2 saxroundtrip failed
else
	#echo : PASSED
        report ${FIRTT_DATA} $3 $1 $2 saxroundtrip passed
fi
