Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

vbscript and xsl

Posted on 2004-08-19
3
393 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Update field in order 21 148
Use a variable for Class Name in Classic ASP 4 61
Need help to rewrite script 3 94
Html form and modal / img src -problem 3 29
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…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…

839 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