LectorXSLT.ruta='';
LectorXSLT.xslt='';

function LectorXSLT(ruta){
	this.ruta=ruta;
	if ((ruta!=undefined) && (ruta!=''))
		this.xslt = loadXSLT(ruta);
	else
		this.xslt = '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"><xsl:copy-of select="/"/></xsl:template></xsl:stylesheet>';
};

LectorXSLT.getXSLT=function(){
	return this.xslt;
};

LectorXSLT.setXSLT=function(xslt){
	this.xslt = xslt;
};

LectorXSLT.getRuta=function(){
	return this.ruta;
};

LectorXSLT.setRuta=function(ruta){
	this.ruta = ruta;
};


	  function loadXSLT(url) {
	    // branch for native XMLHttpRequest object
	    if (window.XMLHttpRequest) {
	        req = new XMLHttpRequest();
	        req.onreadystatechange = processReqChange;
	        req.open("GET", url, false); // the third parameter - true - specified ASYNCHRONOUS processing i.e. not waiting for the response!
	        req.send(null);
	        return req.responseText;
	    // branch for IE/Windows ActiveX version
	    } else if (window.ActiveXObject) {
	        req = new ActiveXObject("Microsoft.XMLHTTP");
	        if (req) {
	            req.onreadystatechange = processReqChange;
	            req.open("GET", url, false); // the third parameter - true - specified ASYNCHRONOUS processing i.e. not waiting for the response!
	            req.send();
	        	return req.responseText;
	        }
	    }
	  }
