Your IP : 18.191.154.46


Current Path : /usr/local/mgr5/skins/dragon/
Upload File :
Current File : //usr/local/mgr5/skins/dragon/extfunc.xsl

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mgr="http://ispsystem.com/xslplugin" exclude-result-prefixes="mgr" xmlns:msxsl="urn:schemas-microsoft-com:xslt">

<msxsl:script language="JScript" implements-prefix="mgr">
	function fixquote(nodelist) {
		var newnodelist = '';
		//temorary code
		for (var i=0; i &lt; nodelist.length; i++) {
			tnodelist = nodelist.item(i).text;
			tnodelist = tnodelist.replace(/\\/g, '\\\\');
			tnodelist = tnodelist.replace(/\n/g, '\\n');
			tnodelist = tnodelist.replace(/\r/g, '\\n');
			tnodelist = tnodelist.replace(/\t/g, '\\t');
			tnodelist = tnodelist.replace(/\v/g, '\\v');
			tnodelist = tnodelist.replace(/\f/g, '\\f');
			tnodelist = tnodelist.replace(/"/g, '\\"');

			newnodelist +=tnodelist;
		}
		return newnodelist;
	}

	function replace(nodelist, replace, by) {
        var newnodelist = '';
        for (var i=0; i &lt; nodelist.length; i++) {
            tnodelist = nodelist.item(i).text;
            tnodelist = tnodelist.replace(replace, by);
            newnodelist +=tnodelist;
        }
		return nodelist;
	}
</msxsl:script>
</xsl:stylesheet>