View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cocoon/trunk/server/src/webapp/sitemap.xmap
Revision: 2718
Committed: Mon Jul 17 14:20:49 2006 UTC (14 years, 11 months ago) by aschrijvers
File size: 9999 byte(s)
Log Message:
added default exceptions and default actions

File Contents

# User Rev Content
1 unico 188 <?xml version="1.0" encoding="UTF-8"?>
2     <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
3     <map:components>
4     <map:generators default="file">
5     <map:generator name="file"
6     src="org.apache.cocoon.generation.FileGenerator"
7     label="content"
8     logger="sitemap.generator.file"
9     pool-min="4" pool-max="32" pool-grow="4"
10     />
11     <map:generator name="jx"
12     src="org.apache.cocoon.generation.JXTemplateGenerator"
13     label="content"
14     logger="sitemap.generator.jx"
15     pool-min="4" pool-max="32" pool-grow="4"
16     />
17     <map:generator name="status"
18     src="org.apache.cocoon.generation.StatusGenerator"
19     label="content"
20     logger="sitemap.generator.status"
21     pool-min="4" pool-max="32" pool-grow="4"
22     />
23     <map:generator name="notifying" src="org.apache.cocoon.sitemap.NotifyingGenerator"/>
24     </map:generators>
25     <map:transformers default="xslt">
26     <map:transformer name="xslt"
27     src="org.apache.cocoon.transformation.TraxTransformer"
28     logger="sitemap.transformer.xslt"
29     pool-min="4" pool-max="32" pool-grow="2">
30     <use-request-parameters>false</use-request-parameters>
31     <use-session-parameters>false</use-session-parameters>
32     <use-cookie-parameters>false</use-cookie-parameters>
33     <xslt-processor-role>xalan</xslt-processor-role>
34     <check-includes>true</check-includes>
35     </map:transformer>
36     <map:transformer name="xsltc"
37     logger="sitemap.transformer.xsltc"
38     src="org.apache.cocoon.transformation.TraxTransformer"
39     pool-min="4" pool-max="32" pool-grow="4">
40     <use-request-parameters>false</use-request-parameters>
41     <use-session-parameters>false</use-session-parameters>
42     <use-cookie-parameters>false</use-cookie-parameters>
43     <xslt-processor-role>xsltc</xslt-processor-role>
44     <check-includes>true</check-includes>
45     </map:transformer>
46     <map:transformer name="webdav"
47     src="nl.hippo.cocoon.transformation.WebDAVTransformer"
48     logger="sitemap.transformers.webdav"
49     pool-min="4" pool-max="32" pool-grow="4">
50     <parameter name="httpstate" value="site:httpstate"/>
51     </map:transformer>
52     </map:transformers>
53     <map:serializers default="html">
54     <map:serializer name="links"
55     logger="sitemap.serializer.links"
56     src="org.apache.cocoon.serialization.LinkSerializer"
57     pool-min="4" pool-max="32" pool-grow="4"
58     />
59     <map:serializer name="xml"
60     logger="sitemap.serializer.xml"
61     mime-type="text/xml"
62     src="org.apache.cocoon.serialization.XMLSerializer"
63     pool-min="4" pool-max="32" pool-grow="4"
64     />
65     <map:serializer name="html"
66     logger="sitemap.serializer.html"
67     mime-type="text/html"
68     src="org.apache.cocoon.serialization.HTMLSerializer"
69     pool-min="4" pool-max="32" pool-grow="4">
70     <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
71     <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
72     </map:serializer>
73     </map:serializers>
74     <map:readers default="resource">
75     <map:reader name="resource"
76     src="org.apache.cocoon.reading.ResourceReader"
77     logger="sitemap.reader.resource"
78     pool-min="4" pool-max="32" pool-grow="4"
79     />
80     </map:readers>
81     <map:matchers default="wildcard">
82     <map:matcher name="wildcard"
83     src="org.apache.cocoon.matching.WildcardURIMatcher"
84     logger="sitemap.matcher.wildcard"
85     />
86     <map:matcher name="site"
87     src="nl.hippo.cocoon.matching.SiteMatcher"
88     logger="sitemap.matcher.site"
89     />
90     </map:matchers>
91     <map:selectors default="parameter">
92     <map:selector name="exception"
93     src="org.apache.cocoon.selection.ExceptionSelector"
94     logger="sitemap.selector.exception">
95     <exception name="not-found"
96     class="org.apache.cocoon.ResourceNotFoundException"
97     />
98 mpfingsthorn 1589 <exception name="not-found"
99     class="java.io.FileNotFoundException"
100     />
101 unico 188 <exception name="invalid-continuation"
102     class="org.apache.cocoon.components.flow.InvalidContinuationException"
103     />
104 aschrijvers 2718 <exception name="not-found"
105     class="org.apache.excalibur.source.SourceNotFoundException"
106     />
107 unico 188 <exception class="java.lang.Throwable" unroll="true"/>
108     </map:selector>
109     <map:selector name="parameter"
110     src="org.apache.cocoon.selection.ParameterSelector"
111     logger="sitemap.selector.parameter"
112     />
113     </map:selectors>
114 aschrijvers 2718 <map:actions>
115     <map:action name="clear-cache"
116     logger="sitemap.action.clear-cache"
117     src="org.apache.cocoon.acting.ClearCacheAction"
118     />
119     <map:action name="clear-eventawaretransientstore"
120     logger="sitemap.action.clear-cache"
121     src="nl.hippo.cocoon.acting.ClearEventAwareTransientStoreAction"
122     />
123     </map:actions>
124 unico 188 <map:pipes default="caching">
125     <map:pipe name="caching"
126 unico 217 src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
127     logger="sitemap.pipes.caching">
128 mpfingsthorn 1589 <!-- Commented out caching to make error reporting work -->
129     <!--parameter name="outputBufferSize" value="32768"/-->
130 unico 188 </map:pipe>
131     <map:pipe name="ecaching"
132 unico 217 src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
133     logger="sitemap.pipes.ecaching">
134 unico 188 <parameter name="cache-role" value="org.apache.cocoon.caching.Cache/EventAware"/>
135 mpfingsthorn 1589 <!-- Commented out caching to make error reporting work -->
136     <!--parameter name="outputBufferSize" value="32768"/-->
137 unico 188 </map:pipe>
138 unico 217 <map:pipe name="noncaching"
139     src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"
140     logger="sitemap.pipes.noncaching">
141 mpfingsthorn 1589 <!-- A 1 MB (1048576 B) buffer for the noncaching pipeline, for pdfs and things? -->
142     <!-- Leaving it at 32KB for now, since it doesn't really matter here -->
143 unico 188 <parameter name="outputBufferSize" value="32768"/>
144     </map:pipe>
145     </map:pipes>
146     </map:components>
147    
148     <map:pipelines>
149    
150     <map:pipeline id="system-private" internal-only="true"/>
151    
152     <map:pipeline id="system-public">
153    
154     <map:match pattern="system/images/*.gif">
155     <map:read mime-type="images/gif" src="resources/images/{1}.gif"/>
156     </map:match>
157    
158     <map:match pattern="system/styles/*.css">
159     <map:read mime-type="text/css" src="resources/styles/{1}.css"/>
160     </map:match>
161    
162     <map:match pattern="system/scripts/*.js">
163     <map:read mime-type="text/javascript" src="resources/scripts/{1}.js"/>
164     </map:match>
165    
166     <map:match pattern="system/favicon.ico">
167     <map:read mime-type="image/x-icon" src="resources/icons/hippo.ico"/>
168     </map:match>
169    
170     <map:match type="site">
171     <map:mount src="{src}" uri-prefix="{uri-prefix}"/>
172     </map:match>
173    
174     <map:select id="domains" type="parameter">
175     <map:parameter name="parameter-selector-test" value="{request:serverName}"/>
176     </map:select>
177    
178     <map:select id="cli" type="parameter">
179     <map:parameter name="parameter-selector-test" value="{request-param:user-agent}"/>
180     </map:select>
181    
182     <!-- welcome page -->
183     <map:match pattern="">
184     <map:generate src="welcome.xml"/>
185     <map:transform src="welcome.xslt">
186     <map:parameter name="contextPath" value="{request:contextPath}"/>
187     <map:parameter name="year" value="{cocoon-properties:/year}"/>
188     </map:transform>
189     <map:serialize type="html"/>
190     </map:match>
191    
192     <map:match pattern="status">
193     <map:generate type="status"/>
194     <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
195     <map:serialize/>
196     </map:match>
197 aschrijvers 2718
198     <map:match pattern="clearcache">
199     <map:act type="clear-cache">
200     <map:generate type="status"/>
201     <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
202     <map:serialize/>
203     </map:act>
204     </map:match>
205    
206     <map:match pattern="clear-eventawaretransientstore">
207     <map:act type="clear-eventawaretransientstore">
208     <map:generate type="status"/>
209     <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
210     <map:serialize/>
211     </map:act>
212     </map:match>
213 unico 188
214     </map:pipeline>
215    
216     <map:handle-errors>
217     <map:select type="exception">
218    
219     <map:when test="not-found">
220     <map:generate type="notifying"/>
221     <map:transform src="stylesheets/system/error2html.xslt">
222     <map:parameter name="pageTitle" value="Resource not found"/>
223     </map:transform>
224     <map:serialize status-code="404"/>
225     </map:when>
226    
227     <map:when test="invalid-continuation">
228     <map:generate src="not-found.xml"/>
229     <map:transform src="welcome.xslt"/>
230     <map:serialize status-code="404"/>
231     </map:when>
232    
233     <map:otherwise>
234     <map:generate type="notifying"/>
235     <map:transform src="stylesheets/system/error2html.xslt"/>
236     <map:serialize status-code="500"/>
237     </map:otherwise>
238     </map:select>
239    
240     </map:handle-errors>
241     </map:pipelines>
242     </map:sitemap>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision