(no commit message)
[utils] / crawler / kiss / docs / sitemap.xmap
1 <?xml version="1.0"?>
2 <!--
3   Copyright 2002-2005 The Apache Software Foundation or its licensors,
4   as applicable.
5
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17 -->
18 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
19
20   <map:components>
21     <map:actions>
22       <map:action logger="sitemap.action.sourcetype" name="sourcetype" src="org.apache.forrest.sourcetype.SourceTypeAction">
23         <sourcetype name="hello-v1.0">
24           <document-declaration public-id="-//Acme//DTD Hello Document V1.0//EN" />
25         </sourcetype>
26       </map:action>
27     </map:actions>   
28     
29     <map:selectors default="parameter">
30             <map:selector logger="sitemap.selector.parameter" name="parameter" src="org.apache.cocoon.selection.ParameterSelector" />
31     </map:selectors>
32   </map:components>
33   
34   <map:resources>    
35     <map:resource name="transform-to-document">
36       <map:act type="sourcetype" src="{src}">
37         <map:select type="parameter">
38           <map:parameter name="parameter-selector-test" value="{sourcetype}" />
39
40           <map:when test="hello-v1.0">
41             <map:generate src="{project:content.xdocs}{../../1}.xml" />
42             <map:transform src="{project:resources.stylesheets}/hello2document.xsl" />
43             <map:serialize type="xml-document"/>
44           </map:when>
45         </map:select>
46       </map:act>
47     </map:resource>
48   </map:resources>
49   
50  <map:pipelines>
51   <map:pipeline>
52     <map:match pattern="old_site/*.html">
53      <map:select type="exists">
54       <map:when test="{project:content}{1}.html">
55         <map:read src="{project:content}{1}.html" mime-type="text/html"/>
56         <!--
57           Use this instead if you want JTidy to clean up your HTML
58           <map:generate type="html" src="{project:content}/{0}" />
59           <map:serialize type="html"/>
60         -->
61       </map:when>
62      </map:select>
63    </map:match>
64    
65    
66    <map:match pattern="installs/**">
67      <map:read src="../../../lib/wamblee/{1}"/>
68    </map:match>     
69   
70    <map:match pattern="**.xml">
71       <map:call resource="transform-to-document">
72         <map:parameter name="src" value="{project:content.xdocs}{1}.xml" />
73       </map:call>
74     </map:match>
75   </map:pipeline>
76  </map:pipelines>
77 </map:sitemap>