[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: transfer values from JavaScript to XSL

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

Attachment: pgp00004.pgp
Description: PGP signature

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.