news.vm_de.xsl

text/xml news.vm_de-3.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">Nachrichten</h1>
	      <table>
                <td>&#160;&#160;&#160;</td>
                <xsl:apply-templates select="//atom:entry[position()&lt;4]"/>
              </table>
	    <p>&#160;</p>
	    &#160;&#160;&#160;<a><xsl:attribute name="href"><xsl:value-of select="atom:feed/@xml:base"/></xsl:attribute>Weitere Nachrichten</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>&#160;&#160;&#160;</td>
  </xsl:template>
</xsl:stylesheet>