Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vbscript and xsl

Posted on 2004-08-19
3
Medium Priority
?
399 Views
Last Modified: 2006-11-17
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 asp 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="VBSCRIPT"><![CDATA[
tags but no joy.

Any advice greatly appreciated.

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

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet 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>
0
Comment
Question by:Ireland75
3 Comments
 
LVL 15

Accepted Solution

by:
joeposter649 earned 300 total points
ID: 11844484
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Screencast - Getting to Know the Pipeline

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question