This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
transfer values from JavaScript to XSL
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] transfer values from JavaScript to XSL
- From: laurence_zhang <laurence_zhang at sina dot com>
- Date: Tue, 02 Oct 2001 16:53:31 +0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
I have a problem on transferring values from JavaScript to XSL files.
I use this in JavaScript:
var MyDoc= new ActiveXObject("MSXML2.FreeThreadedDOMDocument.3.0");
var objXSL = new ActiveXObject("MSXML2.XSLTemplate.3.0");
MyDoc.async = false;
MyDoc.load("http://localhost/English/MyXSL.xsl");
objXSL.stylesheet = MyDoc;
...
...
It works well...
But in some cases I need to use another file:
MyDoc.load("http://localhost/German/MyXSL.xsl");
That means use the same named XSL file in another path.
There will be a viarable passed from another JavaScript file: nLanguge
Something like this:
if ( nLanguge = 1 ){
MyDoc.load("http://localhost/English/MyXSL.xsl");
}
else{
MyDoc.load("http://localhost/German/MyXSL.xsl");
}
How can I do this?
Thanks vary much,everyone:-)
Laurence
______________________________________
===================================================================
新浪免费电子邮箱 (http://mail.sina.com.cn)
国庆云南十万人昼夜狂欢 超低价格快来参加 (http://cheese.sina.com.cn/ticket.html)
有奖寻宝开始了,心动了?行动吧!快快点击! (http://classad.sina.com.cn/)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list