I have the following feed which I want to convert to html:
http://www.heise.de/newsticker/heise.rdf but it does not work, I only see
the html elements empty as if it found no elements in the xml file, whereas
the feed http://www.golem.de/rss.php?feed=RSS1.0 works perfectly although I
annot see any difference in the file structure.
This is my xsl file:
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rss="http://purl.org/rss/1.0/"
xmlns="http://www.w3.org/1999/xhtml"
<xsl:output method="html" />
<xsl:template match="/rdf:RDF">
<html>
<head>
<title>
<xsl:value-of select="/rdf:RDF/rss:channel/rss:title" />
</title>
</head>
<body>
<h2>
<xsl:value-of select="/rdf:RDF/rss:channel/rss:title" />
</h2>
<a href="{rss:channel/rss:link}">
<xsl:value-of select="rss:channel/rss:link" />
</a>
<br />
<xsl:apply-templates select="rss:channel/rss:image" />
<br />
<xsl:value-of select="rss:channel/rss:date" />
<br />
<xsl:value-of select="rss:channel/rss:description" />
<br />
<xsl:apply-templates select="rss:item" />
</body>
</html>
</xsl:template>
<xsl:template match="rss:image">
<img src="{@rdf:resource}" />
</xsl:template>
<xsl:template match="rss:item">
<h3>
<a href="{rss:link}">
<xsl:value-of select="rss:title" />
</a>
</h3>
<xsl:value-of select="rss:description" disable-output-escaping="yes" />
<font size="-1" color="808080">
<br />
<xsl:value-of select="rss:link" />
<br />
<xsl:value-of select="rss:date" />
</font>
</xsl:template>
</xsl:stylesheet>