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/05/14 17:01:33 UTC

svn commit: r537867 - /lenya/trunk/src/modules/xhtml/sitemap.xmap

Author: andreas
Date: Mon May 14 08:01:32 2007
New Revision: 537867

URL: http://svn.apache.org/viewvc?view=rev&rev=537867
Log:
Add parameterized matcher to XHTML module sitemap

Modified:
    lenya/trunk/src/modules/xhtml/sitemap.xmap

Modified: lenya/trunk/src/modules/xhtml/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/xhtml/sitemap.xmap?view=diff&rev=537867&r1=537866&r2=537867
==============================================================================
--- lenya/trunk/src/modules/xhtml/sitemap.xmap (original)
+++ lenya/trunk/src/modules/xhtml/sitemap.xmap Mon May 14 08:01:32 2007
@@ -78,8 +78,13 @@
       </map:match>
 
       <!-- parametrized doctype matcher -->
-      <!-- pattern="{rendertype}" -->
+      <!-- pattern="{format}.xml" -->
       <map:match pattern="*.xml">
+        <map:generate src="cocoon:/{1}.xml/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-uuid}/{page-envelope:document-language}"/>
+        <map:serialize type="xml"/>
+      </map:match>
+      
+      <map:match pattern="*.xml/*/*/*/*">
         <map:generate src="lenya-document:{page-envelope:document-uuid},lang={page-envelope:document-language}{link:rev}"/>
         <map:transform src="fallback://lenya/modules/xhtml/xslt/xhtml2xhtml.xsl">
           <map:parameter name="rendertype" value="{request-param:rendertype}"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org