blob: 4781b29a6b638def86371272fd0736a6d90a07c7 [file] [log] [blame]
<?xml version="1.0"?>
<!-- $Id: sunLet_MoreoverDotCom.xsl,v 1.2 2003/05/06 14:12:55 vgritsenko Exp $
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>
<xsl:template match="moreovernews">
<!-- Stylesheet to be used inside a coplet. Generates HTML from an XML-feed from http://w.moreover.com/ -->
<table>
<xsl:apply-templates select ="article"/>
</table>
</xsl:template>
<xsl:template match="article">
<xsl:if test="position() &lt; 6">
<tr bgcolor="#ffffff"><td><font face="Arial, Helvetica, sans-serif">
<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute>
<font size="-1" color="#333333"><b><xsl:value-of select="headline_text"/></b></font></a><br/>
<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="document_url"/></xsl:attribute>
<font size="-2" color="#46627A"><xsl:value-of select = "source"/></font></a>
<font size="-2" color="#46627A">&#160;&#160;<xsl:value-of select="harvest_time"/></font>
</font></td></tr>
<tr bgcolor="#ffffff"><td bgcolor="#ffffff" height="5"></td></tr>
</xsl:if>
</xsl:template>
</xsl:stylesheet>