XML/XSL News Syndicate Demo
The below output is from a cached version of iSyndicate.com's XML Headline news feed. The XML is outputted using the XSL document described in Displaying XML Data from other Web Sources as HTML using XSL, which can be seen here.

Using XML/XSL in an ASP page is quite simple. The demo contains only a small chunk of code:

startTable="<table bgColor=#f0f8ff border=0 cellPadding=2 WIDTH=100% cellSpacing=0>" & _
           "<tr><td bgcolor=midnightblue><font color=white face=Arial size=2><strong>"
startTableEnd = "</strong></font></td></tr>"
endTable = "</table>"

'Load the XML
set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = false

'Load the XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false

newsName="Headline News"

Set xml = nothing
Set xsl = nothing

And the output is below!

Headline News
FoxNews: Top News
- Cell Transplant May Be Cure for Diabetes
- House to Vote on Shark-Protecting Bill
- New Museum Commemorates The Longest Day
Time: Time Daily
- The White House E-mails: Too Little, Too Late
- The Really, Really Bad Fat
US News: World Report
- Einhorn: Victim or monster?
- Discredited election stirs unrest in Peru
- Pentagon envisions a missile shield for wary allies
- The voice of hate radio in Rwanda is sentenced
- Israel ends its 22-year occupation of southern Lebanon

  • [Return to the article]
  • [View the XSL document]