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

RE: Difficulty with an msxsl:script function.

Subject: RE: Difficulty with an msxsl:script function.
From: "Richard Birkby" <rbirkby@xxxxxxxxxxx>
Date: Tue, 19 Dec 2000 10:37:51 -0000
msxsl script
Yes it does work, but you are passing in a node-set. Therefore,

function getLanguage(oNodeSet) {
 oNodeSet.item(0).
...


Although, from the original code, it looks as though you are trying to navigate through an HTML DOM from within XSLT. Unless you instantiated MSHTML inside the XSLT javascript, I don't think you'd ever get an HTML DOM usuable from XSLT.



Richard


From: Kay Michael <Michael.Kay@xxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE:  Difficulty with an msxsl:script function.
Date: Tue, 19 Dec 2000 09:53:34 -0000

> <msxsl:script language="JavaScript" implements-prefix="user">
> function getLanguage()
> {
> var lang=document.mycombo....
>
Try passing the root node of the document as a parameter to the function,
i.e. call user:getLanguage(/), and use this parameter instead of "document".
I don't know MSXML3 well enough to be sure this will work, but it seems
likely.


Mike Kay

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.