Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display remote XML/RSS feeds?

Status
Not open for further replies.

NiVRaM18

Technical User
Feb 26, 2005
1
US
Hello,

I'm sorry if this is such a vague and unlearned question, but I don't understand xml/rss feeds at all. I am trying to display the rss feed located HERE on my website in html, looking similar to THIS.

I've searched around the web and have been unable to come across any well written tutorials or guides that help me completely. So far, I have written basic XSLT code to use with the XML file:
Code:
<?xml version="1.0"?>
<!-- XML Headers -->
<xsl:stylesheet xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] version="1.0">

<!-- How to Process CHANNEL -->
<xsl:template match="channel">

<!-- Begin Table and Headers -->
<html>
<head>
<title>Lee's Movie Info</title>
</head>
<table>
<tr>
	<td>Rank</td>
	<td>Title</td>
	<td>Daily</td>
	<td>Theatres</td>
	<td>Average</td>
	<td>Total</td>
</tr>

<!-- Process ITEM -->
<xsl:apply-templates select="item"/>
</table>
</html>
</xsl:template>

<!-- How to Process ITEM -->
<xsl:template match="item">
<tr>
	<td><xsl:value-of select="rank"/></td>
<!--error?	<td><a href="<xsl:value-of select="link"/>"><xsl:value-of select="title"/></a></td> -->
	<td><xsl:value-of select="daily"/></td>
	<td><xsl:value-of select="theaters"/></td>
	<td><xsl:value-of select="average"/></td>
	<td><xsl:value-of select="total"/></td>
</tr>
</xsl:template>

<!-- End XML -->
</xsl:stylesheet>

I am at a loss as to what to do now. How do I "link" my XSLT code to the XML file? (Note: The XML file is a remote file and I do not have access to edit it). I want the data to be displayed in normal HTML for usage on my website (probably through an iframe or whatever i can conjur up). I've heard from others that I must use java to do this, could someone point me in the right direction of a Java file/tutorial/whatever?

Thanks in advance for the help,
-NiVRaM

(I often find live chat easier and quicker than forums, so if you are availible to help me, you can reach me at AIM- FaSTBaLL1459 or MSN- marvinslayer@hotmail.com)
 
Hi!

I have a problem including the same kind of situation, except the problem is not the linking between xsl and xml-file. I have made the linking with ASP ( But my real problem is this:

Using above situation as an example: I want to display only "Rank" and "Title" data in the first page and when clicking the "Title" I get to another page displaying all the other data (for example "Theatres", "Average" and "Total") for that movie only I just clicked. How do I do it?

Do I use Xpath or what? ASP? Like NiVRaM above, I have not come across to tutorials or guides in the web concerning this kind of situation.

Could somebody please help me?

Thanks!

-weddap-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top