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]

RE: again for variable from js to xslt


Laurence,
That looks like it should work. But you might want to add the param before
setting the input xml. I haven't tried it with a namespace so change
myProc.addParameter("Switch",bSwitch,""); to
myProc.addParameter("Switch",bSwitch);

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
>laurence_zhang
>Sent: 17 July 2001 12:58
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] 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
>
>


 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]