Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XSL to build a VBScript function call

From: "David Frankenbach" <sendnospam@----------.--->
To: 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 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent