svn commit: r765944 - /lenya/contributions/2_0_X/modules/atom/sitemap.xmap

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Apr 17 11:13:53 2009
New Revision: 765944

URL: http://svn.apache.org/viewvc?rev=765944&view=rev
Log:
Apply proxy transformation to atom entry.

Modified:
    lenya/contributions/2_0_X/modules/atom/sitemap.xmap

Modified: lenya/contributions/2_0_X/modules/atom/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/atom/sitemap.xmap?rev=765944&r1=765943&r2=765944&view=diff
==============================================================================
--- lenya/contributions/2_0_X/modules/atom/sitemap.xmap (original)
+++ lenya/contributions/2_0_X/modules/atom/sitemap.xmap Fri Apr 17 11:13:53 2009
@@ -26,6 +26,16 @@
         <transform namespace="http://www.w3.org/1999/XSL/Transform" element="include" attribute="href"/>
         <transform namespace="http://www.w3.org/1999/XSL/Transform" element="import" attribute="href"/>
       </map:transformer>
+      <map:transformer name="proxy-entry" logger="lenya.sitemap.transformer.proxy"
+        src="org.apache.lenya.cms.cocoon.transformation.ProxyTransformer">
+        <urls type="relative"/>
+        <transform namespace="http://www.w3.org/2005/Atom" element="link" attribute="href"/>
+        <transform namespace="http://apache.org/lenya/editing" element="style" attribute="href"/>
+        <transform namespace="http://apache.org/lenya/editing" element="page-context" attribute="href"/>
+        <transform namespace="http://apache.org/lenya/editing" element="inserts" attribute="href"/>
+        <transform namespace="http://apache.org/lenya/editing" element="schema" attribute="href"/>
+        <transform namespace="http://apache.org/lenya/editing" element="uri-resolver" attribute="href"/>
+      </map:transformer>
     </map:transformers>
   </map:components>
   
@@ -52,6 +62,7 @@
         <map:match pattern="view/*.xml">
           <map:match pattern="view/entry.xml">
             <map:transform src="xslt/entryMetaData.xsl"/>
+            <map:transform type="proxy-entry"></map:transform>
           </map:match>
           <map:serialize type="xml" status-code="{flow-attr:view/statusCode}"/>
         </map:match>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.