You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/04/07 03:30:30 UTC

svn commit: r160361 - lenya/trunk/src/webapp/lenya/admin.xmap

Author: gregor
Date: Wed Apr  6 18:30:29 2005
New Revision: 160361

URL: http://svn.apache.org/viewcvs?view=rev&rev=160361
Log:
Strip down admin sitemap

Added:
    lenya/trunk/src/webapp/lenya/admin.xmap

Added: lenya/trunk/src/webapp/lenya/admin.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/admin.xmap?view=auto&rev=160361
==============================================================================
--- lenya/trunk/src/webapp/lenya/admin.xmap (added)
+++ lenya/trunk/src/webapp/lenya/admin.xmap Wed Apr  6 18:30:29 2005
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: admin.xmap 158793 2005-03-23 16:12:18Z andreas $ -->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+    <map:resources>
+      <map:resource name="style-cms-page">
+      <map:transform type="i18n">      
+        <map:parameter name="locale" value="{request:locale}"/>
+      </map:transform>    
+      <map:transform src="xslt/admin/page2xhtml.xsl">
+        <map:parameter name="contextprefix" value="{request:contextPath}"/>
+      </map:transform>
+      <map:transform src="xslt/util/strip_namespaces.xsl"/>
+      <map:serialize type="xhtml"/>
+    </map:resource>
+  </map:resources>
+
+  <map:pipelines>
+    <map:pipeline>
+
+      <map:select type="parameter">
+        <map:parameter name="parameter-selector-test" value="{request-param:lenya.usecase}"/>
+        <map:when test="">
+          <map:redirect-to session="true" uri="{request:requestURI}?lenya.usecase=admin.users"/>
+        </map:when>
+      </map:select>
+
+      <map:match type="registered-usecase">
+        <map:mount src="usecases/usecase.xmap" uri-prefix="" check-reload="yes" reload-method="synchron"/>
+      </map:match>
+    </map:pipeline>
+    
+      <map:match pattern="internal/status.html">
+        <map:generate src="status" type="status"/>
+        <map:transform src="fallback://lenya/xslt/admin/status2html.xslt">
+          <map:parameter name="contextPath" value="{request:contextPath}"/>
+        </map:transform>
+        <map:serialize type="html"/>
+      </map:match>
+    </map:pipeline>
+    
+  </map:pipelines>
+</map:sitemap>



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