Author: thomas.heute(a)jboss.com
Date: 2007-03-16 12:44:12 -0400 (Fri, 16 Mar 2007)
New Revision: 6716
Modified:
trunk/core-samples/src/resources/portal-samples-war/WEB-INF/xsl/news/Rss2.xsl
Log:
Improved RSS display a bit
Modified: trunk/core-samples/src/resources/portal-samples-war/WEB-INF/xsl/news/Rss2.xsl
===================================================================
---
trunk/core-samples/src/resources/portal-samples-war/WEB-INF/xsl/news/Rss2.xsl 2007-03-16
15:08:08 UTC (rev 6715)
+++
trunk/core-samples/src/resources/portal-samples-war/WEB-INF/xsl/news/Rss2.xsl 2007-03-16
16:44:12 UTC (rev 6716)
@@ -1,36 +1,15 @@
<?xml version="1.0" ?>
-<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ~ JBoss, a division of Red Hat ~
- ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
- ~ contributors as indicated by the @authors tag. See the ~
- ~ copyright.txt in the distribution for a full listing of ~
- ~ individual contributors. ~
- ~ ~
- ~ This is free software; you can redistribute it and/or modify it ~
- ~ under the terms of the GNU Lesser General Public License as ~
- ~ published by the Free Software Foundation; either version 2.1 of ~
- ~ the License, or (at your option) any later version. ~
- ~ ~
- ~ This software is distributed in the hope that it will be useful, ~
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
- ~ Lesser General Public License for more details. ~
- ~ ~
- ~ You should have received a copy of the GNU Lesser General Public ~
- ~ License along with this software; if not, write to the Free ~
- ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
- ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
-
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"
indent="yes"/>
+
<xsl:variable name="link-path">
<xsl:value-of select="rss/channel/link"/>
</xsl:variable>
+
<xsl:template match="/">
- <div align="center">
+ <div style="font-size: 1.5em;"
class="portlet-section-header">
<a href="{$link-path}" target="_blank">
- <xsl:value-of select="rss/channel/title"/>
+ <xsl:value-of select="rss/channel/title"/> - <xsl:value-of
select="rss/channel/description"/>
</a>
</div>
<ul>
@@ -39,9 +18,22 @@
<xsl:value-of select="link"/>
</xsl:variable>
<li>
- <a href="{$this-link}" target="_blank">
- <xsl:value-of select="title"/>
- </a>
+ <div class="portlet-section-subheader">
+ <a href="{$this-link}" target="_blank">
+ <xsl:value-of select="title"/>
+ </a>
+ </div>
+ <div class="portlet-font-dim">
+ <xsl:if test="string(author)">
+ <xsl:value-of select="author"/>
+ </xsl:if>
+ <xsl:if test="string(author) and string(pubDate)">
+  - 
+ </xsl:if>
+ <xsl:if test="string(pubDate)">
+ <xsl:value-of select="pubDate"/>
+ </xsl:if>
+ </div>
</li>
<!-- <xsl:value-of select="description"
disable-output-escaping="yes"/>
<br/>-->