This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: pass value between xml and javascript
- To: "Chen Wang" <wangchen01 at yahoo dot com>
- Subject: Re: [xsl] pass value between xml and javascript
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Sun, 9 Sep 2001 18:39:41 +0100
- CC: XSL-List at lists dot mulberrytech dot com
- Organization: Jeni Tennison Consulting Ltd
- References: <NCBBICEJAKNFFDLLIOJJOEIGCFAA.wangchen01@yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Chen,
> Of course it will not work for above line. But how to get that id
> between <cityid> into the WM_toggle function? I also tried this: <a
> href="#" onclick="WM_toggle('{cityid}'); return false">..</a>, but
> it did not work either.
The above should generate some HTML that looks like:
<a href="#" onclick="WM_toggle('id'); return false">..</a>
If it doesn't, then you are probably using MSXML2 rather than MSXML3.
MSXML2 doesn't support XSLT, but rather a Microsoft-specific variant
which doesn't implement attribute value templates (the {}s). You can
find out more about the difference from the MSXML FAQ at
http://www.netcrucible.com/.
If that's what the transformation's producing but the Javascript
doesn't work, then there's something wrong with the Javascript, not
the XSLT.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list