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:46:42 UTC

svn commit: r546869 - in /lenya/trunk/src/modules/news: sitemap.xmap xslt/collection2rss.xsl

Author: andreas
Date: Wed Jun 13 06:46:41 2007
New Revision: 546869

URL: http://svn.apache.org/viewvc?view=rev&rev=546869
Log:
Use proxy-based URL for RSS feed link in news module

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=546869&r1=546868&r2=546869
==============================================================================
--- lenya/trunk/src/modules/news/sitemap.xmap (original)
+++ lenya/trunk/src/modules/news/sitemap.xmap Wed Jun 13 06:46:41 2007
@@ -71,6 +71,7 @@
           <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"/>

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=546869&r1=546868&r2=546869
==============================================================================
--- lenya/trunk/src/modules/news/xslt/collection2rss.xsl (original)
+++ lenya/trunk/src/modules/news/xslt/collection2rss.xsl Wed Jun 13 06:46:41 2007
@@ -36,6 +36,7 @@
   <xsl:param name="language"/>
   <xsl:param name="area"/>
   <xsl:param name="baseUrl"/>
+  <xsl:param name="proxyUrl"/>
   
   
   <xsl:template match="/col:collection">
@@ -45,7 +46,7 @@
       
       <channel>
         <title><xsl:value-of select="$title"/></title>
-        <link><xsl:value-of select="$baseUrl"/></link>
+        <link><xsl:value-of select="$proxyUrl"/></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