This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: transfer values from JavaScript to XSL
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] transfer values from JavaScript to XSL
- From: Goetz Bock <bock at blacknet dot de>
- Date: Tue, 2 Oct 2001 11:03:16 +0200
- References: <20011002085331.17482.qmail@sina.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Tue, Oct 02 '01 at 16:53, laurence_zhang wrote:
> I have a problem on transferring values from JavaScript to XSL files.
> I use this in JavaScript:
For me this just looks like useing a differet XSL-T from JS.
It works (almost) exactly like you wrote: (note equals is == in JS)
> var MyDoc= new ActiveXObject("MSXML2.FreeThreadedDOMDocument.3.0");
> var objXSL = new ActiveXObject("MSXML2.XSLTemplate.3.0");
> MyDoc.async = false;
> if ( nLanguge == 1 ){
> MyDoc.load("http://localhost/English/MyXSL.xsl");
> }
> else{
> MyDoc.load("http://localhost/German/MyXSL.xsl");
> }
> objXSL.stylesheet = MyDoc;
--
Goetz Bock IT Consultant
Dipl.-Inf. Univ.
PGP signature