Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XSL to build a VBScript function call XSL to build a VBScript function callTo: NULL Date: 4/6/2005 12:17:00 AM I've got a static html file that builds a table from a dynamic XML doc it
works great. I've got filtering and sorting working.
Now I want to add a column to the table that will have an clickable image
that will call a VBScript function. So I'd like to have this HTML code
emitted by the XSL:
<a href="vbscript:LaunchSQL( "sqlprod", "northwind" )"><img
src="isqlw50.gif" border="0"></a>
the sqlprod text above will come from an element named servname, and the
northwind text will come from an element named dbname.
this XSL code fragment correctly gets everyhing but the parameters to the
function:
<xsl:for-each select="VFPData/dbservers">
<xsl:sort select="dbname" order="ascending" />
<tr>
<td>
<xsl:value-of select="dbname"/>
</td>
<td>
<a href="vbscript:LaunchSQL( )"><img src="isqlw50.gif"
border="0" /></a>
</td>
</tr>
</xsl:for-each>
this attempt at the cell output though:
<a href="vbscript:LaunchSQL( "<xsl:value-of
select="servername"/>", "<xsl:value-of select="dbname"/>" )"><img
src="isqlw50.gif" border="0" /></a>
throws an error about an error: Invalid procedure call or argument. So I'm
having a hard spot getting the XML element data into the argument list for
the VBScript code. Can someone help me fix it and maybe point me to a
decent reference on the subject.
TIA,
df
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
