Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Naur -b --strip-trailing-cr ./config2/config/search.js ./config/search.js
- --- ./config2/config/search.js 2007-04-18 17:35:54.000000000 +0400
- +++ ./config/search.js 2012-11-20 23:46:29.000000000 +0400
- @@ -253,6 +253,7 @@
- // }
- // Convert 2-byte numerics to 1-byte numerics
- var arrNums="11,22,33,44,55,66,77,88,99,00".split(",");
- + var mystring="";
- for (var i = 0; i < arrNums.length; i++) {
- re.compile(arrNums[i].substr(0,1), "g");
- mystring = mystring.replace(re,arrNums[i].substr(1,1));
- diff -Naur -b --strip-trailing-cr ./config2/config/stdiodom.js ./config/stdiodom.js
- --- ./config2/config/stdiodom.js 2007-11-23 06:27:04.000000000 +0300
- +++ ./config/stdiodom.js 2012-11-21 23:42:45.000000000 +0400
- @@ -9,12 +9,12 @@
- var UI_lang = parent.CTL.document.ctl.lang.value;
- var xrefWin;
- -htmlNavi_Dtc="";
- -htmlNavi_Sym="";
- -htmlSearch="";
- -htmlSearch_Dtc="";
- -htmlSearch_Sym="";
- -htmlMods_List="";
- +var htmlNavi_Dtc="";
- +var htmlNavi_Sym="";
- +var htmlSearch="";
- +var htmlSearch_Dtc="";
- +var htmlSearch_Sym="";
- +var htmlMods_List="";
- if (window.ActiveXObject) {
- @@ -81,7 +81,7 @@
- }
- else if (window.XSLTProcessor) {
- // load styleNavi_Dtc and get transform in string htmlNavi_Dtc
- - xSrcDtc = xmlLoad_ff("../webdocstructure-dtc.xml");
- + var xSrcDtc = xmlLoad_ff("../webdocstructure-dtc.xml");
- var xDoc = xmlLoad_ff("../../config/navi-dtc-e.xslt");
- xsltProcessor.reset();
- xsltProcessor.importStylesheet(xDoc);
- @@ -98,6 +98,7 @@
- }
- else if (window.XSLTProcessor) {
- // load styleSearch_Dtc and get transform in string htmlSearch_Dtc
- + var xSrcDtc = xmlLoad_ff("../webdocstructure-dtc.xml");
- var xDoc = xmlLoad_ff("../../config/search-dtc-e.xslt");
- xsltProcessor.reset();
- xsltProcessor.importStylesheet(xDoc);
- @@ -115,7 +116,7 @@
- }
- else if (window.XSLTProcessor) {
- // load styleNavi_Sym and get transform in string htmlNavi_Sym
- - xSrcSym = xmlLoad_ff("../webdocstructure-sym.xml");
- + var xSrcSym = xmlLoad_ff("../webdocstructure-sym.xml");
- var xDoc = xmlLoad_ff("../../config/navi-sym-e.xslt");
- xsltProcessor.reset();
- xsltProcessor.importStylesheet(xDoc);
- @@ -132,6 +133,7 @@
- }
- else if (window.XSLTProcessor) {
- // load styleSearch_Sym and get transform in string htmlSearch_Sym
- + var xSrcSym = xmlLoad_ff("../webdocstructure-sym.xml");
- var xDoc = xmlLoad_ff("../../config/search-sym-e.xslt");
- xsltProcessor.reset();
- xsltProcessor.importStylesheet(xDoc);
- @@ -241,10 +243,10 @@
- }
- function xmlLoad_ff(strFile) {
- - var xDoc = document.implementation.createDocument("", "", null);
- - xDoc.async = false;
- - xDoc.load(strFile);
- - return xDoc;
- + var xDoc = new XMLHttpRequest();
- + xDoc.open('GET',strFile,false);
- + xDoc.send(null);
- + return xDoc.responseXML;
- }
- diff -Naur -b --strip-trailing-cr ./config2/config/stdio.js ./config/stdio.js
- --- ./config2/config/stdio.js 2008-06-20 10:15:00.000000000 +0400
- +++ ./config/stdio.js 2012-11-21 23:58:09.000000000 +0400
- @@ -237,16 +237,18 @@
- var xsltProcessor_main = new XSLTProcessor();
- var serializer_main = new XMLSerializer();
- - var xDoc_main = document.implementation.createDocument("", "", null);
- - xDoc_main.async = false;
- - xDoc_main.load("../../config/suzuki_all.xsl");
- - xsltProcessor_main.importStylesheet(xDoc_main);
- + var xDoc_main = new XMLHttpRequest();
- + xDoc_main.open('GET',"../../config/suzuki_all.xsl",false);
- + xDoc_main.send(null);
- + xsltProcessor_main.importStylesheet(xDoc_main.responseXML);
- xsltProcessor_main.setParameter("", "UI_lang", UI_lang);
- }
- - var srcMain = document.implementation.createDocument("", "", null);
- - srcMain.async = false;
- - srcMain.load(strSource);
- - xslMainDoc = xsltProcessor_main.transformToDocument(srcMain);
- + var srcMain = new XMLHttpRequest();
- + srcMain.open('GET',strSource,false);
- + srcMain.send(null);
- + //alert("file:"+file+"\nstate:"+srcMain.readyState+"\nstatus:"+srcMain.status+"\nresponse:"+srcMain.responseText);
- + xslMainDoc = xsltProcessor_main.transformToDocument(srcMain.responseXML);
- +
- htmlMain = serializer_main.serializeToString(xslMainDoc);
- parent.MAIN.document.write(htmlMain);
- parent.MAIN.document.close();
- @@ -350,17 +352,25 @@
- var xsltProcessor_main = new XSLTProcessor();
- var serializer_main = new XMLSerializer();
- - var xDoc_main = document.implementation.createDocument("", "", null);
- - xDoc_main.async = false;
- - xDoc_main.load("../../config/suzuki_all.xsl");
- - xsltProcessor_main.importStylesheet(xDoc_main);
- + try //Firefox
- + {
- + var xDoc_main = new XMLHttpRequest();
- + xDoc_main.open('GET',"../../config/suzuki_all.xsl",false);
- + xDoc_main.send(null);
- + xsltProcessor_main.importStylesheet(xDoc_main.responseXML);
- xsltProcessor_main.setParameter("", "UI_lang", UI_lang);
- }
- - var srcMain = document.implementation.createDocument("", "", null);
- - srcMain.async = false;
- - srcMain.load(file);
- - xslMainDoc = xsltProcessor_main.transformToDocument(srcMain);
- + catch(e) {alert(e.message)}
- + }
- + var srcMain = new XMLHttpRequest();
- + srcMain.open('GET',file,false);
- + srcMain.send(null);
- + //alert("file:"+file+"\nstate:"+srcMain.readyState+"\nstatus:"+srcMain.status+"\nresponse:"+srcMain.responseText);
- + xslMainDoc = xsltProcessor_main.transformToDocument(srcMain.responseXML);
- htmlMain = serializer_main.serializeToString(xslMainDoc);
- + //delete xDoc_main;
- + //delete xsltProcessor_main;
- + //delete serializer_main;
- }
- }
- @@ -640,16 +650,17 @@
- var xsltProcessor_main = new XSLTProcessor();
- var serializer_main = new XMLSerializer();
- - var xDoc_main = document.implementation.createDocument("", "", null);
- - xDoc_main.async = false;
- - xDoc_main.load("../../config/suzuki_all.xsl");
- - xsltProcessor_main.importStylesheet(xDoc_main);
- + var xDoc_main = new XMLHttpRequest();
- + xDoc_main.open('GET',"../../config/suzuki_all.xsl",false);
- + xDoc_main.send(null);
- + xsltProcessor_main.importStylesheet(xDoc_main.responseXML);
- xsltProcessor_main.setParameter("", "UI_lang", UI_lang);
- }
- - var srcMain = document.implementation.createDocument("", "", null);
- - srcMain.async = false;
- - srcMain.load(file);
- - xslMainDoc = xsltProcessor_main.transformToDocument(srcMain);
- + var srcMain = new XMLHttpRequest();
- + srcMain.open('GET',file,false);
- + srcMain.send(null);
- + //alert("file:"+file+"\nstate:"+srcMain.readyState+"\nstatus:"+srcMain.status+"\nresponse:"+srcMain.responseText);
- + xslMainDoc = xsltProcessor_main.transformToDocument(srcMain.responseXML);
- htmlMain = serializer_main.serializeToString(xslMainDoc);
- }
- }
- @@ -922,18 +933,19 @@
- var xsltProcessor_main = new XSLTProcessor();
- var serializer_main = new XMLSerializer();
- - var xDoc_main = document.implementation.createDocument("", "", null);
- - xDoc_main.async = false;
- - xDoc_main.load("../../config/toollist.xsl");
- - xsltProcessor_main.importStylesheet(xDoc_main);
- + var xDoc_main = new XMLHttpRequest();
- + xDoc_main.open('GET',"../../config/toollist.xsl",false);
- + xDoc_main.send(null);
- + xsltProcessor_main.importStylesheet(xDoc_main.responseXML);
- xsltProcessor_main.setParameter("", "tgtTool", tnum);
- xsltProcessor_main.setParameter("", "tb", tb);
- xsltProcessor_main.setParameter("", "dc", dc);
- }
- - var srcMain = document.implementation.createDocument("", "", null);
- - srcMain.async = false;
- - srcMain.load(listPath);
- - xslMainDoc = xsltProcessor_main.transformToDocument(srcMain);
- + var srcMain = new XMLHttpRequest();
- + srcMain.open('GET',listPath,false);
- + srcMain.send(null);
- + //alert("file:"+file+"\nstate:"+srcMain.readyState+"\nstatus:"+srcMain.status+"\nresponse:"+srcMain.responseText);
- + xslMainDoc = xsltProcessor_main.transformToDocument(srcMain.responseXML);
- htmlMain = serializer_main.serializeToString(xslMainDoc);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement