This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

again for variable from js to xslt


the variable to be transfered(bSwitch) is a globle variable in a1.js.
and the input xml file is in a function(getfile(sXMLinput)) in a2.js.
how to put these sentences:

var source = new ActiveXObject("MSXML2.DOMDocument.3.0");
source.async = false;
source.load("http://localhost/Display.xsl";);
var XSLTemplate = new ActiveXObject("MSXML2.XSLTemplate.3.0");
XSLTemplate.stylesheet = source.documentElement
var myProc = XSLTemplate.createProcessor();
myProc.input = sXMLinput;
myProc.addParameter("Switch",bSwitch,"");
myProc.transform;

Thank you very much!
______________________________________

===================================================================
新浪免费电子邮箱 (http://mail.sina.com.cn)
订阅手机短信头条新闻,天天奖多款时尚手机! (http://dailynews.sina.com.cn/c/272235.html)
订阅手机短信顶级新闻每天得新款手机大奖! (http://dailynews.sina.com.cn/c/266499.html)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]