|
Subject: [xsl] again for variable from js to xslt From: laurence_zhang <laurence_zhang@xxxxxxxx> Date: Tue, 17 Jul 2001 19:58:07 +0800 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Is XML-SPY useful for xsl, Trace Wilson | Thread | RE: [xsl] again for variable from j, Chris Bayes |
| RE: [xsl] Extra xmlns="", DPawson | Date | [xsl] passing parameters to templat, hedwig_de_roos |
| Month |