You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/06/13 15:48:18 UTC
svn commit: r546870 - in /lenya/trunk/src/modules/news: sitemap.xmap
xslt/collection2rss.xsl
Author: andreas
Date: Wed Jun 13 06:48:17 2007
New Revision: 546870
URL: http://svn.apache.org/viewvc?view=rev&rev=546870
Log:
Use proxy-based URL for RSS feed link in news module (cleaner solution)
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?view=diff&rev=546870&r1=546869&r2=546870
==============================================================================
--- lenya/trunk/src/modules/news/sitemap.xmap (original)
+++ lenya/trunk/src/modules/news/sitemap.xmap Wed Jun 13 06:48:17 2007
@@ -71,10 +71,10 @@
<map:parameter name="area" value="{3}"/>
<map:parameter name="uuid" value="{4}"/>
<map:parameter name="baseUrl" value="/{2}/{3}"/>
- <map:parameter name="proxyUrl" value="{base-url:{2}:{3}}"/> <!-- needed for RSS link -->
</map:transform>
<map:match pattern="rss.xml/**">
<map:transform type="uuid2url"/>
+ <map:transform type="proxy"/>
<map:transform src="xslt/rss/xhtmllink2rsslink.xsl"/>
<map:transform type="i18n">
<map:parameter name="locale" value="{5}"/>
Modified: lenya/trunk/src/modules/news/xslt/collection2rss.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/news/xslt/collection2rss.xsl?view=diff&rev=546870&r1=546869&r2=546870
==============================================================================
--- lenya/trunk/src/modules/news/xslt/collection2rss.xsl (original)
+++ lenya/trunk/src/modules/news/xslt/collection2rss.xsl Wed Jun 13 06:48:17 2007
@@ -36,7 +36,6 @@
<xsl:param name="language"/>
<xsl:param name="area"/>
<xsl:param name="baseUrl"/>
- <xsl:param name="proxyUrl"/>
<xsl:template match="/col:collection">
@@ -46,7 +45,7 @@
<channel>
<title><xsl:value-of select="$title"/></title>
- <link><xsl:value-of select="$proxyUrl"/></link>
+ <link><xhtml:a href="{$baseUrl}"/></link>
<description></description>
<language><xsl:value-of select="$language"/></language>
<copyright></copyright>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org