var xmldoc = new ActiveXObject("Msxml2.DOMDocument.5.0");
xmldoc.async=false;
xmldoc.load("gpx11tot10.gpx"); //("everest.gpx");//("gpx11.gpx");


var xsldoc= new ActiveXObject("Msxml2.DOMDocument.5.0");
xsldoc.async = false;
xsldoc.validateOnParse = false; //if true wscript error with schemaLocation in rootelement
xsldoc.load("gpx10to11.xslt");

var outfile = new ActiveXObject("Msxml2.DOMDocument.5.0");
outfile.async=false;

var strResult;
strResult = xmldoc.transformNode(xsldoc);
outfile.loadXML(strResult);
outfile.save("gpx10tot11.gpx");

WScript.Echo("gpx10to11.gpx was made.");


