Solved

vbscript and xsl

Posted on 2004-08-19
3
395 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
[X]
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
3 Comments
 
LVL 15

Accepted Solution

by:
joeposter649 earned 100 total points
ID: 11844484
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Select case on click 3 30
Asp in server side with Mssql Server 7 4 42
Replace value 2 55
How to post data to an API using ASP Classic 3 50
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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