Solved

vbscript and xsl

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now