|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] transfer values from JavaScript to XSL
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








