Forum Moderators: open
I have heard that I need to create three different pages in order to display my feed properly on my site.
The first one is the ASP page "ViewRssFeed.asp".
and the XML page "MyRssFeed.xml"
and the XSL style page "MyRssStyle.xsl".
So, the XSL page and the XML page just hang around ready to be called into action by some code in the ASP page that the user is viewing (the ViewRssFeed.asp page).
At the very tip top of the ASP page - above everything else - you would need code to reference the style XSL page that looks like this:
<%
Function getXML(sourceFile)
dim styleFile
dim source, style
styleFile = Server.MapPath("MyRssStyle.xsl")
Dim xmlhttp
Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
xmlhttp.Open "GET", sourceFile, false
xmlhttp.Send
set source = Server.CreateObject("Microsoft.XMLDOM")
source.async = false
source.loadxml(xmlhttp.ResponseText)
set style = Server.CreateObject("Microsoft.XMLDOM")
style.async = false
style.load(styleFile)
getXML = source.transformNode(style)
set source = nothing
set style = nothing
End Function
%>
And in the middle of the same ASP page (ViewRssFeed.asp page) I would need code that calls the feed to the page like this:
<%= getXML("http://example.com/MyRssFeed.xml") %>
OK now I have the ASP page ("ViewRssFeed.asp") and the XML page ("MyRssFeed.xml")
BUT what should I put (on) to the third XSL style page ("MyRssStyle.xsl".)?
Can somebody PLEASE help me to short these things out for me?
Thank You Laszlo.
[edited by: werty at 3:04 am (utc) on July 8, 2005]
[edit reason] Changed URL to example.com [/edit]