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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to