vbscript and xsl

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kieran

    #1

    vbscript and xsl

    Hi,

    I have a vbscript function and an xsl file and when the vbscript
    function is ran it creats the xml value that the xsl file then
    transforms. It was done by Sharepoint so I figure there must be a way
    for writing this so it works in one file. Some way of running the
    function then putting the xsl file to transform it and outputting the
    results.

    I tried putting the xsl into an xsl editor, and then the function into
    an xml editor enclosed in the
    <SCRIPT language="VBSCR IPT"><![CDATA[
    tags but no joy.

    Any advice greatly appreciated.

    --------------------------------------------------------------
    Function GetContent(nod)
    On Error Resume Next
    'code removed for simplicity'
    response.write "<Name>" & ..... & "</Name>"
    End Function

    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:styleshe et version="1.0"
    xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" omit-xml-declaration="no " indent="yes"
    encoding="utf-8" />
    <xsl:template match="/">
    <TABLE>
    <xsl:for-each select="Name">
    <TR>
    <TD valign="top" align="left">
    <b><a
    href='http://link/'><xsl:value-of select="."/></a></b>
    </TD>
    </TR>
    </xsl:for-each>
    </TABLE>
    </xsl:template>
    </xsl:stylesheet>
Working...