Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW CAN YOU VBSCRIPT TO RUN FUNCTION IN XML 1

Status
Not open for further replies.

2314

Programmer
May 19, 2001
69
IN
I WANT TO KNOW HOW CAN YOU USE VBSCRIPT TO RUN FUNCTION XSL STYLESHEET IN XML USING EVAL.PLEASE HELP
 
Hello,
It is not very clear what exactly you want to accomplish.
I guess that you would like to embed VBScript code in XSL stylesheet, so when do the transformation from xml file to html, to have that function and to use it.
So there is the way:

<xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;<xsl:template match=&quot;/&quot;>
<html>
<head>
<script language=&quot;VBScript&quot;>
<xsl:comment>
<![CDATA[
Sub Test
MsgBox &quot;Test!&quot;
End Sub
]]>
</xsl:comment>
</script>
</head>
<body>
<table border=&quot;1&quot;>
<tr>
<xsl:for-each select=&quot;//sometag&quot;>
<td><a href=&quot;#&quot; onclick=&quot;Test&quot;><xsl:value-of select=&quot;.&quot;/></a></td>
</xsl:for-each>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Hope this helps.
If it is something else, post again.
:)
D.
 
HI DIANAL,
THANKS FOR HELPING BUT WHAT I REALLY WANTED TO KNOW IS HOW TO USE THE EVAL ELEMENT TO CALL VB FUNCTION IF YOU OR ANYBODY ELSE KNOW ABOUT IT PLEASE HELP ME.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top