<?xml version="1.0"?>
<!--$Id: auto-rss-discover.xsl 6018 2008-11-04 19:52:11Z tv.raman.tv $-->

<!--
Author: T. V. Raman <raman@cs.cornell.edu>
Copyright: (C) T. V. Raman, 2001 - 2002,   All Rights Reserved.
License: GPL
Description: Display all RSS links
-->
<xsl:stylesheet  xmlns:h="http://www.w3.org/1999/xhtml"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0">
  
  <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
  <xsl:template name="generate-rss">
    <xsl:if test="count(//link[@type='application/rss+xml'])">
      <xsl:apply-templates select="//link[@type='application/rss+xml']" mode="rss"/>
    </xsl:if>
  </xsl:template>
  
  <xsl:template match="h:link|link" mode="rss">
    <xsl:if test="@type='application/rss+xml'">
      <p>
        <a>
          <xsl:attribute name="href">
            <xsl:value-of select="@href"/>
          </xsl:attribute>
          <xsl:value-of select="@title"/>
        </a>
      </p>
    </xsl:if>
  </xsl:template>
</xsl:stylesheet>
<!--
Local Variables:
mode: xae
sgml-indent-step: 2
sgml-indent-data: t
sgml-set-face: nil
sgml-insert-missing-element-comment: nil
folded-file: t
End:
-->
