This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
again for variable from js to xslt
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] again for variable from js to xslt
- From: laurence_zhang <laurence_zhang at sina dot com>
- Date: Tue, 17 Jul 2001 19:58:07 +0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
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