/ Published in: XSLT
A simple RSS reader written in XSLT
Expand |
Embed | Plain Text
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <h1><a href="{rss/channel/link}"><xsl:value-of select="rss/channel/title" /></a></h1> <p><xsl:value-of select="rss/channel/description" /></p> <ol> <xsl:for-each select="rss/channel/item"> <li> <h1><a href="{link}"><xsl:value-of select="title" /></a></h1> <p><xsl:value-of select="description" /></p> </li> </xsl:for-each> </ol> </body> </html> </xsl:template> </xsl:stylesheet>
You need to login to post a comment.
