summaryrefslogtreecommitdiffstats
path: root/test/samples/w3c/convert-tests.sh
blob: 4c47c71ea62059a77fd2ea6e28f7b9aa667181ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ME=`basename $0`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR

TXMLS=`ls txml/*.txml`

# see http://saxon.sourceforge.net/saxon6.5.1/using-xsl.html
for TXML in $TXMLS
do
	DEST=ecma/`basename $TXML .txml`.scxml
	echo "Processing $TXML to $DEST"
	java -jar /Users/sradomski/Developer/Applications/SaxonHE9-4-0-7J/saxon9he.jar $TXML confEcma.xsl -o:$DEST
done

for TXML in $TXMLS
do
	DEST=xpath/`basename $TXML .txml`.scxml
	echo "Processing $TXML to $DEST"
	java -jar /Users/sradomski/Developer/Applications/SaxonHE9-4-0-7J/saxon9he.jar $TXML confXPath.xsl -o:$DEST
done