|
Subject: [xsl] RE: From: "Ard Schrijvers" <Ard@xxxxxxxx> Date: Tue, 11 Jun 2002 10:32:40 +0200 |
It's a liitle bit easier to just write :
<a href="#" onclick="vbscript:OpenWindow3('{<xsl:value-of select="@SSN"/>}',{<xsl:value-of select="@Plancode"/><xsl:value-of select="@Plancode"/>})"> <xsl:value-of select="@SSN"/></a>
I suppose you get the error message because of 999-99-9999 is a string, and not a number, so just put single ' around the xsl:value of the first argument in your function
-----Oorspronkelijk bericht-----
Van: Mark Turanin [mailto:mark.turanin@xxxxxxxxxxx]
Verzonden: 07 June 2002 22:19
Aan: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Onderwerp:
I need to find the xsl way to include arguments into a function call of a
link element. Here is what I tried..
<xsl:element name="A">
<xsl:attribute name="href">#</xsl:attribute>
<xsl:attribute name="onclick">vbscript:OpenWindow3(<xsl:value-of
select="@SSN"/>,<xsl:value-of select="@Plancode"/>)</xsl:attribute>
<xsl:value-of select="@SSN"/>
</xsl:element>
Here is what I am getting and it is causing errors.
<a href="#" onclick="vbscript:OpenWindow3(999-99-9999,12345)">
999-99-9999
</a>
I'm figuring it is because I am not surrounding each argument with "".
However, i can't figure out how to include " in xsl.
Please help.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Re:, David N Bertoni/Camb | Thread | Re: [xsl] RE:, Antonio Fiol |
| [xsl] RE: [xsl] character '†' , Michael Kay | Date | Re: [xsl] RE:, Antonio Fiol |
| Month |