Commit ecdc464e authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

Large patch from Martijn van Beurden to improve the news feeds.

parent 474ad857
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<xsl:variable name="godecoding">go_decoding();</xsl:variable>
<xsl:template match="/">
<xsl:if test="count(rss/channel/item)=0">
<p>Sorry, there is no news to share currently</p>
</xsl:if>
<xsl:for-each select="rss/channel/item">
<xsl:if test="position()&lt;6">
<h3><a href="{link}" name="{substring(guid,39)}"><xsl:value-of select="title" /></a> - <xsl:value-of select="substring(pubDate,5,12)" /></h3>
<p><xsl:value-of select="description" /></p>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<xsl:variable name="godecoding">go_decoding();</xsl:variable>
<xsl:template match="/">
<xsl:if test="count(rss/channel/item)=0">
<p>Sorry, there is no news to share currently</p>
</xsl:if>
<xsl:for-each select="rss/channel/item">
<p><b><a href="{link}" name="{substring(guid,39)}"><xsl:value-of select="title" /></a></b> - <xsl:value-of select="substring(pubDate,5,12)" /><br />
<xsl:value-of select="description" /></p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<xsl:variable name="godecoding">go_decoding();</xsl:variable>
<xsl:template match="/">
<xsl:if test="count(rss/channel/item)=0">
Sorry, there is no news to share currently
</xsl:if>
<xsl:for-each select="rss/channel/item">
<xsl:if test="position()&lt;15">
<xsl:value-of select="substring(pubDate,5,12)" />: <a href="{link}" name="{substring(guid,39)}"><xsl:value-of select="title" /></a><br />
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
......@@ -110,6 +110,17 @@ div.box_body
font-size: 100%;
}
#newsbox h3
{
margin: 5px 0 0 0;
font-size: 0.9em;
}
#newsbox p
{
margin: 0 0 5px 0;
}
div.smallbox
{
text-align: left;
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment