#!/bin/sh

X2V_DIR=/usr/local/src/x3dv2/
if test -d $X2V_DIR ; then
    echo > /dev/null
else
    echo path to x3dv2 not found 1>&2
    echo change X2V_DIR= in $0 1>&2
    exit 1
fi

DIR1=`dirname $1`
if test "X_$DIR1" = "X_." ; then
    DIR1=`pwd`
fi
ARG1=$DIR1/`basename $1`

DIR2=`dirname $2`
if test "X_$DIR2" = "X_." ; then
    DIR2=`pwd`
fi
ARG2=$DIR2/`basename $2`

CLASSPATH=$X2V_DIR/x3dv2.jar:"$CLASSPATH"
export CLASSPATH

cd $X2V_DIR/test
java org.apache.xalan.xslt.Process -IN $ARG1 -XSL $X2V_DIR/test/X3dToVrml97.xsl -OUT $ARG2


