svn commit: r765201 - /lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/sitemap.xmap

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Apr 15 13:48:44 2009
New Revision: 765201

URL: http://svn.apache.org/viewvc?rev=765201&view=rev
Log:
Add pipeline for importExampleContent usecase.

Modified:
    lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/sitemap.xmap

Modified: lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/sitemap.xmap?rev=765201&r1=765200&r2=765201&view=diff
==============================================================================
--- lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/sitemap.xmap (original)
+++ lenya/contributions/2_0_X/pubs/defaultfiredocs/modules/defaultstyle/sitemap.xmap Wed Apr 15 13:48:44 2009
@@ -184,6 +184,13 @@
       
       <map:match pattern="*/**.*">
         
+        <map:select type="resource-exists">
+          <map:when test="lenya://lenya/pubs/{page-envelope:publication-id}/content/authoring/sitetree.xml"/>
+          <map:otherwise>
+            <map:redirect-to uri="{proxy:/{page-envelope:publication-id}/{1}/{2}.html}?lenya.usecase=export.importExampleContent"/>
+          </map:otherwise>
+        </map:select>
+        
         <!-- 
           HEAD requests shouldn't have all the xslt overhead, all the user wants is the HTTP header information.
           So the actual content generation is bypassed.
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.