#!/usr/bin/perl

use Getopt::Long;
use File::Copy;


#------------------------------------------------Environmental Variables--------------------------------------------------------------------------------
$cp = "CLASSPATH";
$ENV{$cp} = "/usr/java/jdk1.5.0_11/lib:/opt/saxon/saxon8sa.jar:/opt/saxon/saxon8-jdom.jar:/opt/saxon/$ENV{$cp}";

#starts schema aware transformation. This will cause the transformation to fail if the document is invalid
# the -vw option indicates that validation errors found when validating the result tree should be treated as warnings only.
#This option is available only with the Saxon-SA version of the command, com.saxonica.Transform.

my @csax = "java com.saxonica.Transform -vw map_detailed_validated.xml MIF2MRF.xsl";
my $mif = system(@csax);


