flymis/WebRoot/dojojs/src/xml/XslTransform.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.xml.XslTransform");
dojo.xml.XslTransform = function(/*String*/ xsltUri) {
// summary:
// dojo.xml.XslTransform is a convenience object that takes the URI String
// of an XSL file as a constructor argument.
// After each transformation all parameters will be cleared.
// Note this is supported by IE and Mozilla ONLY.
dojo.debug("XslTransform is supported by Internet Explorer and Mozilla, with limited support in Opera 9 (no document function support).");
var IS_IE = window.ActiveXObject ? true : false;
var ACTIVEX_DOMS = [
"Msxml2.DOMDocument.5.0",
"Msxml2.DOMDocument.4.0",
"Msxml2.DOMDocument.3.0",
"MSXML2.DOMDocument",
"MSXML.DOMDocument",
"Microsoft.XMLDOM"
];
var ACTIVEX_FT_DOMS = [
"Msxml2.FreeThreadedDOMDocument.5.0",
"MSXML2.FreeThreadedDOMDocument.4.0",
"MSXML2.FreeThreadedDOMDocument.3.0"
];
var ACTIVEX_TEMPLATES = [
"Msxml2.XSLTemplate.5.0",
"Msxml2.XSLTemplate.4.0",
"MSXML2.XSLTemplate.3.0"
];
function getActiveXImpl(activeXArray) {
for (var i=0; i < activeXArray.length; i++) {
try {
var testObj = new ActiveXObject(activeXArray[i]);
if (testObj) {
return activeXArray[i];
}
} catch (e) {}
}
dojo.raise("Could not find an ActiveX implementation in:\n\n " + activeXArray);
}
if (xsltUri == null || xsltUri == undefined) {
dojo.raise("You must pass the URI String for the XSL file to be used!");
return false;
}
var xsltDocument = null;
var xsltProcessor = null;
后面还有 128 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。