[xsl] transfer values from JavaScript to XSL

Subject: [xsl] transfer values from JavaScript to XSL
From: laurence_zhang <laurence_zhang@xxxxxxxx>
Date: Tue, 02 Oct 2001 16:53:31 +0800
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


Current Thread