@echo off
set TESTDIR=..\..\..
if not [%THIRDPARTY%]==[] set TESTDIR=%THIRDPARTY%\XlnGui\xalan-j_2_5_1\bin
set TESTCP=..\XercesValidator.jar;%TESTDIR%\xml-apis.jar;%TESTDIR%\xercesImpl.jar
if [%1]==[] goto builtins

@echo -----------------------------------------------------------------
@echo on
%JDKHOME%\bin\java.exe -classpath %TESTCP% com.progress.stylus.XercesValidator %1
@echo off
@echo -----------------------------------------------------------------
goto cleanup

:builtins
@echo -----------------------------------------------------------------
@echo on
@echo Test 1: good.xml and good.dtd
%JDKHOME%\bin\java.exe -classpath %TESTCP% com.progress.stylus.XercesValidator good.xml
@echo -----------------------------------------------------------------
@echo Test 2: bad.xml and bad.dtd
%JDKHOME%\bin\java.exe -classpath %TESTCP% com.progress.stylus.XercesValidator bad.xml
@echo off
@echo -----------------------------------------------------------------

:cleanup
@set TESTCP=
@set TESTXML=
@set TESTDIR=
