news.vm_en.xsl
news.vm_en.xsl — 1.4 KB
Dateiinhalt
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" > <xsl:output method="html" indent="yes"/> <xsl:template match="/"> <html> <head> <title><xsl:value-of select="atom:feed/atom:title"/></title> </head> <body> <div class="tabs"> <h1 class="tabhead">News</h1> <table> <td>   </td> <xsl:apply-templates select="//atom:entry[position()<4]"/> </table> <p> </p>    <a><xsl:attribute name="href"><xsl:value-of select="atom:feed/@xml:base"/></xsl:attribute>More news</a> </div> </body> </html> </xsl:template> <xsl:template match="atom:entry"> <td width="175" valign="top"> <img width="150" height="100"><xsl:attribute name="src"><xsl:value-of select="atom:link[@rel='enclosure']/@href"/></xsl:attribute></img> <h2><xsl:value-of select="atom:title" disable-output-escaping="yes"/></h2> <a><xsl:attribute name="href"><xsl:value-of select="atom:link[@rel='alternate']/@href"/></xsl:attribute><xsl:value-of select="atom:summary" disable-output-escaping="yes"/></a> </td> <td>   </td> </xsl:template> </xsl:stylesheet>