Re: [xsl] transfer values from JavaScript to XSL

Subject: Re: [xsl] transfer values from JavaScript to XSL
From: Goetz Bock <bock@xxxxxxxxxxx>
Date: Tue, 2 Oct 2001 11:03:16 +0200
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.

Attachment: pgp00004.pgp
Description: PGP signature

Current Thread