| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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$ --> |
| <!-- |
| This sitemap handles calls to usecases which are registered in the |
| usecase framework. |
| --> |
| |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| |
| <map:components> |
| <map:transformers default="xslt"> |
| <map:transformer name="browser-update" src="org.apache.cocoon.ajax.BrowserUpdateTransformer"/> |
| </map:transformers> |
| <map:selectors> |
| <map:selector name="ajax-request" src="org.apache.cocoon.ajax.AjaxRequestSelector"/> |
| </map:selectors> |
| </map:components> |
| |
| <!-- =========================== FlowScript =============================== --> |
| |
| <map:flow language="javascript"> |
| <map:script src="usecases.js"/> |
| </map:flow> |
| |
| <!-- =========================== Pipelines ================================ --> |
| |
| <map:pipelines> |
| |
| <map:pipeline type="noncaching" internal-only="true"> |
| <!-- |
| This internal pipeline renders the usecase, once the |
| executeUsecase() flowscript has completed and issued a redirect, |
| which is matched here. |
| --> |
| <map:match pattern="usecases-view/*"> |
| |
| |
| |
| <map:generate type="jx" src="{flow-attr:usecase/view/viewURI}"/> |
| <map:serialize type="servletService"> |
| <map:parameter name="service" value="servlet:gui:/service/style-cms-page"/> |
| </map:serialize> |
| <!-- --> |
| <!-- <map:transform type="browser-update"/>--> |
| <!-- <map:transform type="cinclude"/>--> |
| <!-- <map:transform type="forms" />--> |
| <!-- --> |
| <!-- <map:transform type="proxy-usecase"/>--> |
| <!-- <map:transform src="xslt/proxyUrl2text.xsl"/>--> |
| <!-- --> |
| <!-- <map:transform src="cocoon://lenya-screen.xsl"/>--> |
| <!-- //ancienne technique <map:parameter name="locale" value="{request:locale}"/>--> |
| <!-- <map:transform type="i18n">--> |
| <!-- <map:parameter name="locale" value="{jxpath:$cocoon/request/locale}"/> --> |
| <!-- </map:transform>--> |
| <!-- Strip xhtml namespace from <head> and <body> element --> |
| <!-- <map:transform src="fallback://lenya/xslt/cforms/strip-xhtml-namespace.xsl"/>--> |
| <!-- <map:transform src="fallback://lenya/xslt/cforms/forms-samples-styling.xsl">--> |
| <!-- <map:parameter name="resources-uri" value="{page-envelope:context-prefix}/cforms"/>--> |
| <!-- </map:transform>--> |
| <!-- <map:transform src="fallback://lenya/xslt/cforms/add-xhtml-namespace.xsl"/>--> |
| <!-- <map:match pattern="usecases-view/menu/**">--> |
| <!-- <map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{page-envelope:area}/default.xml"/>--> |
| <!-- </map:match>--> |
| <!-- <map:select type="ajax-request">--> |
| <!-- <map:when test="true">--> |
| <!-- <map:serialize type="xml"/>--> |
| <!-- </map:when>--> |
| <!-- </map:select>--> |
| <!-- <map:select type="request-parameter">--> |
| <!-- <map:parameter name="parameter-name" value="asXML"/>--> |
| <!-- <map:when test="true">--> |
| <!-- <map:serialize type="xml"/>--> |
| <!-- </map:when>--> |
| <!-- </map:select>--> |
| <!-- --> |
| <!-- <map:transform type="proxy-xhtml"/>--> |
| <!-- <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>--> |
| <map:serialize type="xml"/> |
| |
| </map:match> |
| |
| </map:pipeline> |
| |
| <map:pipeline> |
| |
| <map:match type="request-parameter" pattern="lenya.continuation"> |
| <map:call continuation="{1}"/> |
| </map:match> |
| |
| <map:match pattern="service/usecase/*"> |
| <map:call function="executeUsecase"> |
| <map:parameter name="usecaseName" value="{1}"/> |
| </map:call> |
| </map:match> |
| |
| <!-- ////// différence entre les deux appels !!! |
| voir pour faire directement l'appel sous forme servlet:usecase:/service/... |
| --> |
| <map:match type="usecase" pattern="*"> |
| <!-- ancien appel --> |
| <map:call function="executeUsecase"> |
| <map:parameter name="usecaseName" value="{request-param:lenya.usecase}"/> |
| </map:call> |
| <!-- nouveau --> |
| <!-- <map:generate src="cocoon:/service/usecase/{request-param:lenya.usecase}"/>--> |
| <!-- <map:serialize type="xml"/>--> |
| <!-- test --> |
| <!-- <map:generate src="sitemap.xmap"/>--> |
| <!-- <map:serialize type="xml"/>--> |
| </map:match> |
| |
| |
| |
| </map:pipeline> |
| |
| <map:handle-errors> |
| <map:generate type="exception"/> |
| <map:transform src="servlet:style:/stylesheets/system/exception2html.xslt"> |
| <map:parameter name="realPath" value="{realpath:}"/> |
| </map:transform> |
| <map:serialize type="xml" status-code="200"/> |
| </map:handle-errors> |
| |
| </map:pipelines> |
| |
| </map:sitemap> |