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

How to pass on xml information to javascript in XSL

Subject: How to pass on xml information to javascript in XSL
From: "aSad Khan" <asadikhan@xxxxxxxxxxx>
Date: Thu, 17 Oct 2002 16:47:20 -0400
javascript extract xml
Hi!

I know this is how you extract XML information in XSLT:

...
Name: <xsl:value-of select="name"/><br/>
...

Now I have something like this:

<form>
<input type="button" value="Add To Cart" onClick="addcart('name',7,10)"/>
</form>


But this send the literal string name to the function. How do I send the value of name instead? I can't find the syntax anywhere. Please help. Thanks.

_________________________________________________________________
Unlimited Internet access -- and 2 months free!? Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp



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.