| 
 
Subject: Re: [xsl] How to pass on xml information to javascript in XSL From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Fri, 18 Oct 2002 02:30:37 +0200  | 
<input type="button" value="Add To Cart">
  <xsl:attribute name="onClick">
    <xsl:text>addcart('</xsl:text>
    <xsl:value-of select="name"/>
    <xsl:text>',7,10)</xsl:text>
  </xsl:attribute>
</input>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 | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| [xsl] How to pass on xml informatio, aSad Khan | Thread | RE: [xsl] Re: Is it possible to kno, Dion Houston | 
| Re: [xsl] Arguments for XSL, Joerg Heinicke | Date | RE: [xsl] Arguments for XSL, Robert Koberg | 
| Month |