Subject: [xsl] Re: From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Fri, 7 Jun 2002 16:43:38 -0400 |
[Mark Turanin] > 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. > Just put them in, and if you use literal result elements and attribute value templates, that will make it more readable: <A href='#' onclick='vbscript:OpenWindow3("{@SSN}","{@Plancode}")'> <xsl:value-of select='@SSN'/></A> Cheers, Tom P XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[no subject], Mark Turanin | Thread | [xsl] I feel the need for speed!, Russ Determan |
Re: [xsl] keys vs. parameters, Thomas B. Passin | Date | [xsl] I feel the need for speed!, Russ Determan |
Month |