This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: transfer values from JavaScript to XSL



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]