Solved

vbscript and xsl

Posted on 2004-08-19
3
391 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 100 total points
ID: 11844484
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Creating TABS in ASP Classic NOT using DIV 22 68
Auto Submit on dropdown box 3 75
ASP SQL Syntax Duplicate Key 7 102
RegEx Help - open to other simple suggestions 8 52
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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