This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Passing XSL variable to Javascript!
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Passing XSL variable to Javascript!
- From: "Alexander Gutman" <gutman at novosoft-us dot com>
- Date: Fri, 10 Aug 2001 18:02:01 +0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
> > 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.
As soon as I can see, the problem is on the client (browser) side,
in the resultant HTML: <a href="JavaScript:...">. :-)
So, quoting the argument should help.
--
Alexander E. Gutman
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list