RE: [xsl] Passing XSL variable to Javascript!

Subject: RE: [xsl] Passing XSL variable to Javascript!
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 10 Aug 2001 10:59:56 +0100
> I am facing a problem when i am trying to pass a XSL variable to a
> javascript function.

If your javascript function expects a string, then in the function call,
convert the XPath value to a string using the string() function. Otherwise
the Javascript function will be passed a node-set. The implicit conversion
of node-sets to strings that happens when you call native XPath functions
doesn't happen within a JavaScript function.

Mike Kay
Software AG
>


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


Current Thread