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:styleshe et 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:chan nel/rss:link}">
<xsl:value-of select="rss:cha nnel/rss:link" />
</a>
<br />
<xsl:apply-templates select="rss:cha nnel/rss:image" />
<br />
<xsl:value-of select="rss:cha nnel/rss:date" />
<br />
<xsl:value-of select="rss:cha nnel/rss:description " />
<br />
<xsl:apply-templates select="rss:ite m" />
</body>
</html>
</xsl:template>
<xsl:template match="rss:imag e">
<img src="{@rdf:reso urce}" />
</xsl:template>
<xsl:template match="rss:item ">
<h3>
<a href="{rss:link }">
<xsl:value-of select="rss:tit le" />
</a>
</h3>
<xsl:value-of select="rss:des cription" disable-output-escaping="yes" />
<font size="-1" color="808080">
<br />
<xsl:value-of select="rss:lin k" />
<br />
<xsl:value-of select="rss:dat e" />
</font>
</xsl:template>
</xsl:stylesheet>