| <?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. |
| --> |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| <!-- ======================== Views ================================ --> |
| <!-- |
| The debug view can be used to output an intermediate |
| snapshot of the pipeline. |
| Pass cocoon-view=debug as a URL parameter to see |
| the pipeline output produced by the transofrmer |
| labeled "debug". You can move the label to different |
| transformers to understand each processing |
| stage better. |
| --> |
| <map:views> |
| <map:view name="debug" from-label="debug"> |
| <map:serialize type="xml"/> |
| </map:view> |
| <map:view name="debug1" from-label="debug1"> |
| <map:serialize type="xml"/> |
| </map:view> |
| </map:views> |
| <!-- ======================== Resources ============================ --> |
| <map:resources> |
| <map:resource name="html"> |
| <map:transform src="stylesheets/site2html.xsl"/> |
| <map:serialize type="html"/> |
| </map:resource> |
| </map:resources> |
| <!-- ======================== Flow ================================= --> |
| <map:flow language="javascript"> |
| <map:script src="flow/PetStoreImpl.js"/> |
| <map:script src="flow/petstore.js"/> |
| </map:flow> |
| <!-- ======================== Pipelines ============================ --> |
| <map:pipelines> |
| <map:pipeline> |
| <map:match pattern="*.kont"> |
| <!-- This handles sendPage*() continuations.--> |
| <map:call continuation="{1}"/> |
| </map:match> |
| <map:match pattern="*.do"> |
| <map:call function="main"> |
| <map:parameter name="page" value="{1}"/> |
| </map:call> |
| </map:match> |
| <map:match pattern=""> |
| <map:call function="index"/> |
| </map:match> |
| </map:pipeline> |
| <map:pipeline> |
| <map:match pattern="view/*.xsp"> |
| <map:generate src="view/xsp/{1}.xsp" type="serverpages" label="debug"/> |
| <map:call resource="html"/> |
| </map:match> |
| <map:match pattern="view/*.jxpath"> |
| <map:generate src="view/jxpath/{1}.xml" type="file"/> |
| <map:transform type="jx" label="debug"/> |
| <map:call resource="html"/> |
| </map:match> |
| <map:match pattern="view/*.jexl"> |
| <map:generate src="view/jexl/{1}.xml" type="jx" label="debug"/> |
| <map:call resource="html"/> |
| </map:match> |
| <map:match pattern="view/*.vm"> |
| <map:generate src="view/velocity/{1}.vm" type="velocity" label="debug"/> |
| <map:serialize type="html"/> |
| </map:match> |
| <map:match pattern="view/*.cforms"> |
| <map:generate src="view/forms/{1}_t.xml" label="debug"/> |
| <map:transform type="forms" label="debug1"/> |
| <map:call resource="html"/> |
| </map:match> |
| </map:pipeline> |
| <map:pipeline> |
| <map:match pattern="images/*.gif"> |
| <map:read mime-type="image/gif" src="images/{1}.gif"/> |
| </map:match> |
| <map:match pattern="images/*.jpg"> |
| <map:read mime-type="image/jpeg" src="images/{1}.jpg"/> |
| </map:match> |
| </map:pipeline> |
| </map:pipelines> |
| </map:sitemap> |
| <!-- end of file --> |