This repository has been archived by the owner on Oct 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
sitemap.xmap
585 lines (533 loc) · 36.4 KB
/
sitemap.xmap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
<?xml version="1.0" encoding="UTF-8"?>
<!--
sitemap.xmap
Version: $Revision$
Date: $Date$
Copyright (c) 2002-2005, Hewlett-Packard Company and Massachusetts
Institute of Technology. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of the Hewlett-Packard Company nor the name of the
Massachusetts Institute of Technology nor the names of their
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
-->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:generators default="file">
<map:generator label="content" logger="sitemap.generator.file" name="file" pool-max="32"
src="org.apache.cocoon.generation.FileGenerator"/>
<map:generator label="content" logger="sitemap.generator.directory" name="directory"
pool-max="16" src="org.apache.cocoon.generation.DirectoryGenerator"/>
<map:generator name="DSpaceFeedGenerator" src="org.dspace.app.xmlui.cocoon.DSpaceFeedGenerator"/>
<map:generator name="DSpaceMETSGenerator" src="org.dspace.app.xmlui.cocoon.DSpaceMETSGenerator"/>
<map:generator name="DSpaceOREGenerator" src="org.dspace.app.xmlui.cocoon.DSpaceOREGenerator"/>
<map:generator name="OpenSearchGenerator" src="org.dspace.app.xmlui.cocoon.OpenSearchGenerator"/>
<map:generator name="notifying" src="org.apache.cocoon.sitemap.NotifyingGenerator"/>
<map:generator name="exception" src="org.apache.cocoon.generation.ExceptionGenerator"/>
<map:generator name="AJAXMenuGenerator"
src="org.dspace.app.xmlui.cocoon.AJAXMenuGenerator"/>
</map:generators>
<map:serializers default="xml">
<map:serializer logger="sitemap.serializer.xml" mime-type="text/xml; charset=utf-8" name="xml"
src="org.apache.cocoon.serialization.XMLSerializer">
<indent>yes</indent>
<encoding>UTF-8</encoding>
</map:serializer>
<map:serializer name="rss" logger="sitemap.serializer.rss" mime-type="application/rss+xml; charset=utf-8"
src="org.apache.cocoon.serialization.XMLSerializer">
<indent>yes</indent>
<encoding>UTF-8</encoding>
</map:serializer>
<map:serializer name="atom" logger="sitemap.serializer.atom" mime-type="application/atom+xml; charset=utf-8"
src="org.apache.cocoon.serialization.XMLSerializer">
<indent>yes</indent>
<encoding>UTF-8</encoding>
</map:serializer>
<map:serializer name="opensearch" logger="sitemap.serializer.opensearch" mime-type="application/opensearchdescription+xml; charset=utf-8"
src="org.apache.cocoon.serialization.XMLSerializer">
<indent>yes</indent>
<encoding>UTF-8</encoding>
</map:serializer>
<map:serializer name="xhtml" logger="sitemap.serializer.xhtml"
src="org.apache.cocoon.serialization.XMLSerializer"
mime-type="text/html; charset=utf-8"
pool-grow="2" pool-max="64" pool-min="2">
<doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
<encoding>UTF-8</encoding>
<indent>yes</indent>
</map:serializer>
<map:serializer name="html" logger="sitemap.serializer.html"
src="org.apache.cocoon.serialization.HTMLSerializer"
mime-type="text/html; charset=utf-8"
pool-grow="2" pool-max="64" pool-min="2">
<doctype-public>-//W3C//DTD XHTML 1.0 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>
<encoding>UTF-8</encoding>
<indent>yes</indent>
</map:serializer>
</map:serializers>
<map:transformers default="xslt">
<map:transformer logger="sitemap.transformer.xslt" name="xslt" pool-max="32"
src="org.apache.cocoon.transformation.TraxTransformer">
<use-request-parameters>false</use-request-parameters>
<use-session-parameters>false</use-session-parameters>
<use-cookie-parameters>false</use-cookie-parameters>
<xslt-processor-role>xalan</xslt-processor-role>
<check-includes>true</check-includes>
</map:transformer>
<map:transformer name="i18n" src="org.dspace.app.xmlui.cocoon.DSpaceI18NTransformer">
<catalogues default="default">
<catalogue id="default" name="messages" aspects="true">
<location>context://i18n/</location>
<!-- Two locations for each installed aspect will be installed, one inside
the aspect's directory and another inside the base location listed
above -->
</catalogue>
</catalogues>
<untranslated-text>untranslated</untranslated-text>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
<map:transformer name="SAXLogger" src="org.apache.cocoon.transformation.LogTransformer"/>
<map:transformer name="Include" src="org.dspace.app.xmlui.wing.Include"/>
<map:transformer name="IncludePageMeta" src="org.dspace.app.xmlui.wing.IncludePageMeta"/>
<map:transformer name="stylesheet" src="org.dspace.app.xmlui.cocoon.StylesheetInstructionTransformer"/>
<map:transformer name="PasswordLogin" src="org.dspace.app.xmlui.aspect.eperson.PasswordLogin"/>
<map:transformer name="LDAPLogin" src="org.dspace.app.xmlui.aspect.eperson.LDAPLogin"/>
<map:transformer name="notice" src="org.dspace.app.xmlui.aspect.general.NoticeTransformer"/>
<map:transformer name="NamespaceFilter" src="org.dspace.app.xmlui.cocoon.NamespaceFilterTransformer"/>
</map:transformers>
<map:matchers default="wildcard">
<map:matcher logger="sitemap.matcher.wildcard" name="wildcard"
src="org.apache.cocoon.matching.WildcardURIMatcher"/>
<map:matcher logger="sitemap.matcher.regexp" name="regexp"
src="org.apache.cocoon.matching.RegexpURIMatcher"/>
<map:matcher logger="sitemap.matcher.request-parameter" name="request-parameter"
src="org.apache.cocoon.matching.RequestParameterMatcher"/>
<map:matcher logger="sitemap.matcher.cookie" name="cookie"
src="org.apache.cocoon.matching.CookieMatcher"/>
<map:matcher logger="sitemap.matcher.header" name="header"
src="org.apache.cocoon.matching.HeaderMatcher"/>
<map:matcher logger="sitemap.matcher.parameter" name="parameter"
src="org.apache.cocoon.matching.ParameterMatcher"/>
<map:matcher name="WildcardParameterMatcher" src="org.apache.cocoon.matching.WildcardParameterMatcher"/>
<map:matcher logger="sitemap.matcher.sessionstate" name="sessionstate"
src="org.apache.cocoon.matching.WildcardSessionAttributeMatcher">
<attribute-name>org.apache.cocoon.SessionState</attribute-name>
</map:matcher>
<map:matcher logger="sitemap.matcher.referer-match" name="referer-match"
src="org.apache.cocoon.matching.WildcardHeaderMatcher">
<header-name>referer</header-name>
</map:matcher>
<map:matcher name="mount-table" src="org.apache.cocoon.matching.MountTableMatcher">
<map:parameter name="ignore-missing-tables" value="true"/>
</map:matcher>
<map:matcher name="request" src="org.apache.cocoon.matching.RequestParameterMatcher"/>
</map:matchers>
<map:selectors>
<map:selector name="browser" src="org.apache.cocoon.selection.BrowserSelector"
logger="sitemap.selector.browser">
<!-- Identify web-crawling robots (spiders)
- to support if-modified-since protocol, but not on browsers
- because it would let pages that depend on authorization get cached.
- List these first since may spiders also include browser signatures in their user-agent strings.
-->
<browser name="spider" useragent="Googlebot"/>
<browser name="spider" useragent="msnbot"/>
<browser name="spider" useragent="Yahoo! Slurp"/>
<browser name="spider" useragent="Y!J"/>
<browser name="spider" useragent="Yahoo Pipes"/>
<browser name="spider" useragent="YahooCacheSystem"/>
<browser name="spider" useragent="Ask Jeeves"/>
<browser name="spider" useragent="FAST Enterprise Crawle"/>
<browser name="spider" useragent="Ultraseek"/>
<browser name="spider" useragent="Baiduspider"/>
<browser name="spider" useragent="yacybot"/>
<!-- Interactive browsers -->
<browser name="explorer" useragent="MSIE"/>
<browser name="explorer6" useragent="MSIE 6"/>
<browser name="explorer7" useragent="MSIE 7"/>
<browser name="safari2" useragent="(KHTML, like Gecko) Safari"/>
<browser name="safari3" useragent="(KHTML, like Gecko) Version/3"/>
<browser name="firefox" useragent="Firefox"/>
<browser name="firefox1" useragent="Firefox/1."/>
<browser name="firefox2" useragent="Firefox/2."/>
</map:selector>
<map:selector name="parameter" src="org.apache.cocoon.selection.ParameterSelector"/>
<map:selector logger="sitemap.selector.exception" name="exception" src="org.apache.cocoon.selection.ExceptionSelector">
<exception name="not-found" class="org.apache.cocoon.ResourceNotFoundException"/>
<exception name="invalid-continuation" class="org.apache.cocoon.components.flow.InvalidContinuationException"/>
<!-- The statement below tells the selector to unroll as much exceptions as possible -->
<exception class="java.lang.Throwable" unroll="true"/>
</map:selector>
</map:selectors>
<map:readers default="resource">
<map:reader name="resource" src="org.apache.cocoon.reading.ResourceReader"
logger="sitemap.reader.resource" pool-max="32">
<expires>3600000</expires> <!-- 1000 * 60 * 60 = 3600000 = One hour -->
</map:reader>
<map:reader name="BitstreamReader" src="org.dspace.app.xmlui.cocoon.BitstreamReader"/>
<map:reader name="ExportReader" src="org.dspace.app.xmlui.cocoon.ItemExportDownloadReader"/>
<map:reader name="MetadataExportReader" src="org.dspace.app.xmlui.cocoon.MetadataExportReader"/>
<map:reader name="OpenURLReader" src="org.dspace.app.xmlui.cocoon.OpenURLReader"/>
<map:reader name="SitemapReader" src="org.dspace.app.xmlui.cocoon.SitemapReader"/>
</map:readers>
<map:actions>
<map:action name="locale" src="org.dspace.app.xmlui.cocoon.DSpaceLocaleAction"/>
<map:action name="StartAuthentication" src="org.dspace.app.xmlui.aspect.eperson.StartAuthenticationAction"/>
<map:action name="DSpacePropertyFileReader" src="org.dspace.app.xmlui.cocoon.DSpacePropertyFileReader" />
<map:action name="PropertyFileReader" src="org.dspace.app.xmlui.cocoon.PropertyFileReader" />
</map:actions>
<map:pipes default="caching">
<map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline">
</map:pipe>
<map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline">
</map:pipe>
</map:pipes>
</map:components>
<map:resources>
<map:resource name="i18n-transformer">
<map:act type="locale">
<map:transform type="i18n">
<map:parameter name="locale" value="{locale}"/>
</map:transform>
</map:act>
</map:resource>
</map:resources>
<!-- =========================== Pipelines ================================= -->
<map:pipelines>
<!-- Bitstream pipeline -->
<map:pipeline type="noncaching">
<map:parameter name="outputBufferSize" value="8192"/>
<map:parameter name="expires" value="now"/>
<!--
Bitstreams for items that have a handle assigned. If the
sequence parameter is given then that will be used to resolve the
bitstream, other wise the name will attempt to be matched.
/bitstream/handle/[handlePrefix]/[handlePostfix]/[name]?sequence=[sequence]
NOTE: When user-agent was identified as a spider (crawler robot), pass
that on to the generator so it can implement If-Modified-Since protocol.
-->
<map:match pattern="bitstream/handle/*/*/**">
<map:match type="request-parameter" pattern="sequence">
<map:select type="browser">
<map:when test="spider">
<map:read type="BitstreamReader">
<map:parameter name="userAgent" value="spider"/>
<map:parameter name="handle" value="{../1}/{../2}"/>
<map:parameter name="name" value="{../3}"/>
<map:parameter name="sequence" value="{1}"/>
</map:read>
</map:when>
<map:otherwise>
<map:read type="BitstreamReader">
<map:parameter name="handle" value="{../1}/{../2}"/>
<map:parameter name="name" value="{../3}"/>
<map:parameter name="sequence" value="{1}"/>
</map:read>
</map:otherwise>
</map:select>
</map:match>
<!-- otherwise, call without sequence parameter -->
<map:select type="browser">
<map:when test="spider">
<map:read type="BitstreamReader">
<map:parameter name="userAgent" value="spider"/>
<map:parameter name="handle" value="{1}/{2}"/>
<map:parameter name="name" value="{3}"/>
</map:read>
</map:when>
<map:otherwise>
<map:read type="BitstreamReader">
<map:parameter name="handle" value="{1}/{2}"/>
<map:parameter name="name" value="{3}"/>
</map:read>
</map:otherwise>
</map:select>
</map:match>
<!--
Bitstreams for items that do not have a handle assigned. If the
sequence parameter is given then that will be used to resolve the
bitstream, other wise the name will attempt to be matched.
/bitstream/item/[itemID]/[name]?sequence=[sequence]
-->
<map:match pattern="bitstream/item/*/**">
<map:match type="request-parameter" pattern="sequence">
<map:select type="browser">
<map:when test="spider">
<map:read type="BitstreamReader">
<map:parameter name="userAgent" value="spider"/>
<map:parameter name="itemID" value="{../1}"/>
<map:parameter name="name" value="{../2}"/>
<map:parameter name="sequence" value="{1}"/>
</map:read>
</map:when>
<map:otherwise>
<map:read type="BitstreamReader">
<map:parameter name="itemID" value="{../1}"/>
<map:parameter name="name" value="{../2}"/>
<map:parameter name="sequence" value="{1}"/>
</map:read>
</map:otherwise>
</map:select>
</map:match>
<map:select type="browser">
<map:when test="spider">
<map:read type="BitstreamReader">
<map:parameter name="userAgent" value="spider"/>
<map:parameter name="itemID" value="{1}"/>
<map:parameter name="name" value="{2}"/>
</map:read>
</map:when>
<map:otherwise>
<map:read type="BitstreamReader">
<map:parameter name="itemID" value="{1}"/>
<map:parameter name="name" value="{2}"/>
</map:read>
</map:otherwise>
</map:select>
</map:match>
<!--
Bitstreams not attached to to items (community / collection logos)
/bitstream/id/[bitstreamID]/[ignored]
-->
<map:match pattern="bitstream/id/*/**">
<map:select type="browser">
<map:when test="spider">
<map:read type="BitstreamReader">
<map:parameter name="userAgent" value="spider"/>
<map:parameter name="bitstreamID" value="{1}"/>
</map:read>
</map:when>
<map:otherwise>
<map:read type="BitstreamReader">
<map:parameter name="bitstreamID" value="{1}"/>
</map:read>
</map:otherwise>
</map:select>
</map:match>
<!--
For URL compatability with the JSPUI, redirect these old url to their new locations.
/bitstream/[handlePrefix]/[handlePostfix]/[sequence]/[name]
/html/[handlePrefix]/[handePostfix]/[name]
-->
<map:match pattern="bitstream/*/*/*/**">
<map:redirect-to uri="{request:contextPath}/bitstream/handle/{1}/{2}/{4}?sequence={3}" permanent="yes"/>
</map:match>
<map:match pattern="html/*/*/**">
<map:redirect-to uri="{request:contextPath}/bitstream/handle/{1}/{2}/{3}" permanent="yes"/>
</map:match>
<!--Redirect /handle/[handleprefix]/[handlePostfix]/ to the same path but without a trailing slash-->
<map:match pattern="handle/*/*/">
<map:redirect-to uri="{request:contextPath}/handle/{1}/{2}" permanent="yes"/>
</map:match>
<!--
Downloads for the package download export
-->
<map:match pattern="exportdownload/*">
<map:read type="ExportReader">
<map:parameter name="fileName" value="{1}"/>
</map:read>
</map:match>
<map:match pattern="csv/handle/*/*">
<map:read type="MetadataExportReader">
<map:parameter name="handle" value="{1}/{2}" />
</map:read>
</map:match>
</map:pipeline>
<!-- new AJAX menu (choices) responses for metadata authority control -->
<map:pipeline type="noncaching">
<map:match pattern="choices/*">
<map:act type="locale"/>
<!-- XXX bug: how do we get this locale into a parameter? -->
<map:generate type="AJAXMenuGenerator">
<map:parameter name="field" value="{1}"/>
<map:parameter name="query" value="{request-param:query}"/>
<map:parameter name="collection" value="{request-param:collection}"/>
<map:parameter name="start" value="{request-param:start}"/>
<map:parameter name="limit" value="{request-param:limit}"/>
<map:parameter name="format" value="{request-param:format}"/>
<map:parameter name="locale" value="{request-param:locale}"/>
</map:generate>
<map:serialize type="xml"/>
<!-- </map:match>
-->
</map:match>
</map:pipeline>
<!-- non-bitstream pipeline -->
<map:pipeline>
<!--<map:parameter name="expires" value="now"/>-->
<map:match pattern="openURL">
<map:read type="OpenURLReader"/>
</map:match>
<!--
catch mydspace uri's and immediately redirect
to "submissions" this is a fix to catch approval
emails "mydspace" linking from Workflow system.
-->
<map:match pattern="mydspace">
<map:redirect-to uri="submissions" permanent="yes" />
</map:match>
<!-- Theme pipeline -->
<map:match pattern="DRI/**">
<map:mount check-reload="no" src="aspects/aspects.xmap" uri-prefix="DRI/"/>
</map:match>
<map:match pattern="metadata/**">
<map:match pattern="metadata/handle/*/*/mets.xml">
<map:generate type="DSpaceMETSGenerator">
<map:parameter name="handle" value="{1}/{2}"/>
<!--<map:parameter name="extra" value="{3}"/>-->
</map:generate>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="metadata/internal/*/*/mets.xml">
<map:generate type="DSpaceMETSGenerator">
<map:parameter name="internal" value="{1}:{2}"/>
<!--<map:parameter name="extra" value="{3}"/>-->
</map:generate>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="metadata/handle/*/*/ore.xml**">
<map:generate type="DSpaceOREGenerator">
<map:parameter name="handle" value="{1}/{2}"/>
<map:parameter name="extra" value="{3}"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="metadata/internal/*/*/ore.xml**">
<map:generate type="DSpaceOREGenerator">
<map:parameter name="internal" value="{1}:{2}"/>
<map:parameter name="extra" value="{3}"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
</map:match>
<!-- Syndication feeds for whole repo or community/collection -->
<map:match pattern="feed/*/**">
<map:generate type="DSpaceFeedGenerator">
<map:parameter name="feedFormat" value="{1}"/>
<map:parameter name="handle" value="{2}"/>
</map:generate>
<map:act type="locale">
<map:transform type="i18n">
<map:parameter name="locale" value="{locale}"/>
</map:transform>
</map:act>
<map:serialize type="xml"/>
</map:match>
<!-- OpenSearch results for whole repo or community/collection -->
<map:match pattern="open-search/**">
<map:match pattern="open-search/description.xml">
<map:generate type="OpenSearchGenerator">
<map:parameter name="type" value="description"/>
</map:generate>
<map:serialize type="opensearch"/>
</map:match>
<map:match pattern="open-search/**">
<map:generate type="OpenSearchGenerator"/>
<map:act type="locale">
<map:transform type="i18n">
<map:parameter name="locale" value="{locale}"/>
</map:transform>
</map:act>
<map:select type="request-parameter">
<map:parameter name="parameter-name" value="format"/>
<map:when test="rss">
<map:serialize type="rss"/>
</map:when>
<map:when test="atom">
<map:serialize type="atom"/>
</map:when>
<map:otherwise>
<map:serialize type="html"/>
</map:otherwise>
</map:select>
</map:match>
</map:match>
<!-- HTML Sitemaps and Sitemaps.org Sitemaps for whole repo -->
<map:match pattern="htmlmap">
<map:read type="SitemapReader">
<map:parameter name="type" value="html"/>
</map:read>
</map:match>
<map:match pattern="sitemap">
<map:read type="SitemapReader">
<map:parameter name="type" value="sitemaps.org"/>
</map:read>
</map:match>
<!-- handle common theme resources, such as dri2xhtml -->
<map:match pattern="themes/*">
<map:read src="themes/{1}"/>
</map:match>
<!-- handle theme specific resources static or dynamic -->
<map:match pattern="themes/*/**">
<map:mount check-reload="no" src="themes/{1}/sitemap.xmap" uri-prefix=""/>
</map:match>
<!-- Load globally static content (*.txt or *.html) when requested.
This is specifically for global HTML files or robots.txt files,
either of which can be placed in the 'static/' directory.-->
<map:match pattern="*.txt">
<map:read src="static/{1}.txt"/>
</map:match>
<map:match pattern="*.html">
<map:read src="static/{1}.html"/>
</map:match>
<!-- Also, allow reference to globally static content via the /static path.
This will allow your globally static HTML docs to load static CSS or images. -->
<map:match pattern="static/*/**">
<map:read src="static/{1}/{2}"/>
</map:match>
</map:pipeline>
<map:pipeline>
<!--<map:match pattern="**">-->
<map:mount check-reload="no" src="themes/themes.xmap" uri-prefix=""/>
<!--</map:match>-->
</map:pipeline>
<map:handle-errors>
<map:select type="exception">
<map:when test="not-found">
<map:generate type="exception"/>
<map:transform src="exception2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
<map:parameter name="pageTitle" value="Resource not found"/>
</map:transform>
<map:serialize type="xhtml" status-code="404"/>
</map:when>
<map:when test="invalid-continuation">
<map:generate type="exception"/>
<map:transform src="exception2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
<map:parameter name="pageTitle" value="Invalid Continuation"/>
</map:transform>
<map:serialize type="xhtml" status-code="404"/>
</map:when>
<map:otherwise>
<map:generate type="exception"/>
<map:transform src="exception2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize type="xhtml" status-code="500"/>
</map:otherwise>
</map:select>
</map:handle-errors>
</map:pipelines>
</map:sitemap>