svn commit: r647162 - in /lenya/trunk/src/modules/news: sitemap.xmap xslt/collection2rss.xsl
[email protected] Fri, 11 Apr 2008 13:31:02 -0000
Newsgroups
gmane.comp.cms.lenya.cvs
Message-ID
<[email protected] >
Author: andreas
Date: Fri Apr 11 06:30:57 2008
New Revision: 647162
URL: http://svn.apache.org/viewvc?rev=647162&view=rev
Log:
Show full user name on RSS feeds instead of user ID.
Modified:
lenya/trunk/src/modules/news/sitemap.xmap
lenya/trunk/src/modules/news/xslt/collection2rss.xsl
Modified: lenya/trunk/src/modules/news/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/news/sitemap.xmap?rev=647162&r1=647161&r2=647162&view=diff
==============================================================================
--- lenya/trunk/src/modules/news/sitemap.xmap (original)
+++ lenya/trunk/src/modules/news/sitemap.xmap Fri Apr 11 06:30:57 2008
@@ -108,6 +108,7 @@
<map:parameter name="area" value="{3}"/>
</map:transform>
<map:match pattern="rss.xml/**">
+ <map:transform type="userInfo"/>
<map:transform type="uuid2url"/>
<map:transform type="proxy">
<map:parameter name="urls" value="absolute"/>
Modified: lenya/trunk/src/modules/news/xslt/collection2rss.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/news/xslt/collection2rss.xsl?rev=647162&r1=647161&r2=647162&view=diff
==============================================================================
--- lenya/trunk/src/modules/news/xslt/collection2rss.xsl (original)
+++ lenya/trunk/src/modules/news/xslt/collection2rss.xsl Fri Apr 11 06:30:57 2008
@@ -24,6 +24,7 @@
xmlns:col="http://apache.org/cocoon/lenya/collection/1.0"
xmlns:meta="http://apache.org/lenya/meta/1.0/"
xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:user="http://apache.org/lenya/userinfo/1.0"
exclude-result-prefixes="xhtml lenya col meta dc i18n xml"
>
@@ -75,7 +76,7 @@
<xsl:call-template name="getHref"/>
</xsl:variable>
<link><xhtml:a href="{$href}"/></link>
- <author><meta:value element="creator" ns="http://purl.org/dc/elements/1.1/" uuid="{@uuid}" lang="{@xml:lang}"/></author>
+ <author><user:fullname><meta:value element="creator" ns="http://purl.org/dc/elements/1.1/" uuid="{@uuid}" lang="{@xml:lang}"/></user:fullname></author>
<pubDate><i18n:date-time locale="en" src-pattern="yyyy-MM-dd hh:mm:ss" pattern="EEE, dd MMM yyyy HH:mm:ss Z" value="{dc:date}"/></pubDate>
</item>
</xsl:template>