You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2011/01/03 01:40:25 UTC

svn commit: r1054509 - /jakarta/site/xdocs/stylesheets/news2content.xsl

Author: sebb
Date: Mon Jan  3 00:40:25 2011
New Revision: 1054509

URL: http://svn.apache.org/viewvc?rev=1054509&view=rev
Log:
Add pubDate to items

Modified:
    jakarta/site/xdocs/stylesheets/news2content.xsl

Modified: jakarta/site/xdocs/stylesheets/news2content.xsl
URL: http://svn.apache.org/viewvc/jakarta/site/xdocs/stylesheets/news2content.xsl?rev=1054509&r1=1054508&r2=1054509&view=diff
==============================================================================
--- jakarta/site/xdocs/stylesheets/news2content.xsl (original)
+++ jakarta/site/xdocs/stylesheets/news2content.xsl Mon Jan  3 00:40:25 2011
@@ -84,6 +84,10 @@ limitations under the License.
             <title>
                 <xsl:value-of select="@title"/>
             </title>
+            <pubDate>
+            <!-- Convert yyyymmdd.n into yyyy-mm-dd and thence into dd MMM yyyy -->
+            <xsl:value-of select="date:formatDate(concat(substring(@id,1,4),'-',substring(@id,5,2),'-',substring(@id,7,2)),'dd MMM yyyy')"/>
+            </pubDate>
             <!-- The file is name news-{group id}.html -->
             <link>http://jakarta.apache.org/site/news/news-<xsl:value-of select="../@id"
                     />.html#<xsl:value-of select="@id"/></link>



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org