home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 November / PCWorld_2003-11_cd.bin / Novinky / Interval / podklady / ruzicka / aspx / rss / rssreader / rssreader.xslt < prev    next >
Extensible Markup Language  |  2003-09-05  |  1KB  |  20 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.   <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" encoding="utf-8" media-type="text/html; charset=utf-8" />
  4.   <xsl:template match="rss/channel">
  5.     <a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:attribute name="target"><xsl:text>top</xsl:text></xsl:attribute><xsl:value-of select="title"/></a>
  6.      <xsl:value-of select="lastBuildDate"/>
  7.     <ul>
  8.       <xsl:for-each select="//item">
  9.       <li>
  10.         <a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:attribute name="target"><xsl:text>top</xsl:text></xsl:attribute><xsl:value-of select="title"/></a>
  11.          <xsl:value-of select="description" disable-output-escaping="yes" />
  12.       </li>
  13.       </xsl:for-each>
  14.     </ul>
  15.   </xsl:template>
  16.   <xsl:template match="/">
  17.     <xsl:apply-templates/>
  18.   </xsl:template>
  19. </xsl:stylesheet>
  20.