<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet
[
<!ENTITY nbsp   "&#160;">
<!ENTITY pound  "&#163;">
<!ENTITY curren "&#164;">
<!ENTITY yen    "&#165;">
<!ENTITY copy   "&#169;">
<!ENTITY laquo  "&#171;">
<!ENTITY reg    "&#174;">
<!ENTITY deg    "&#176;">
<!ENTITY para   "&#182;">
<!ENTITY raquo  "&#187;">
<!ENTITY Ccedil "&#199;">
<!ENTITY aring  "&#229;">
<!ENTITY ccedil "&#231;">
<!ENTITY egrave "&#232;">
<!ENTITY eacute "&#233;">
<!ENTITY ouml   "&#246;">
<!ENTITY uuml   "&#252;">
<!ENTITY ndash  "&#8211;">
<!ENTITY mdash  "&#8212;">
]>

<xsl:stylesheet 
  version="1.0"
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:nde="http://devedge.netscape.com/2002/de"
  xmlns:ent="http://devedge.netscape.com/2003/ent"
>
<xsl:output method="html" omit-xml-declaration="yes" />

<xsl:template match="nde:rssdirectory">
 <table>
  <xsl:for-each select="nde:rsschannel[not(@year)]">
   <tr>
   <td><xsl:element name="a" use-attribute-sets="linkattr"><xsl:apply-templates select="nde:rsschanneltitle" /></xsl:element> - <xsl:apply-templates select="nde:rsschanneldesc" /></td>
   <td><xsl:element name="a" use-attribute-sets="newlinkattrs">New</xsl:element></td>
   <td><xsl:element name="a" use-attribute-sets="fulllinkattrs">Full</xsl:element></td>
   </tr>
  </xsl:for-each>
 </table>
</xsl:template>

<xsl:template match="nde:rsschanneltitle">
 <xsl:apply-templates />
</xsl:template>

<xsl:template match="nde:rsschanneldesc">
 <xsl:apply-templates />
</xsl:template>

<xsl:attribute-set name="linkattr">
 <xsl:attribute name="href"><xsl:value-of select="@loc" /></xsl:attribute>
</xsl:attribute-set>

<xsl:attribute-set name="newlinkattrs">
 <xsl:attribute name="href"><xsl:value-of select="@loc" />rss-new_en.xml</xsl:attribute>
 <xsl:attribute name="title">New items feed</xsl:attribute>
</xsl:attribute-set>

<xsl:attribute-set name="fulllinkattrs">
 <xsl:attribute name="href"><xsl:value-of select="@loc" />rss-full_en.xml</xsl:attribute>
 <xsl:attribute name="title">Full history feed</xsl:attribute>
</xsl:attribute-set>

<xsl:template match="@*|node()">
 <xsl:copy>
  <xsl:apply-templates select="@*|node()" />
 </xsl:copy>
</xsl:template>

</xsl:stylesheet>

