blob: d15e11b2617e75259a949992b18a7f906a4ec758 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
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: doctypes.xmap 179488 2005-06-02 02:29:39Z gregor $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
<map:components>
<map:serializers default="xhtml">
<map:serializer name="xml-get" src="org.apache.cocoon.serialization.XMLSerializer" mime-type="text/xml">
<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>
</map:serializer>
</map:serializers>
</map:components>
<map:pipelines>
<!-- search pipeline -->
<map:pipeline>
<!-- {pub-id}/{area}/{uuid}/{language} -->
<map:match pattern="metadata/*/*/*/*">
<map:generate type="lenyaMetaData" src="lenya-document:{3},pub={1},area={2},lang={4}"/>
<map:serialize type="xml"/>
</map:match>
<!-- {pub-id}/{area}/{uuid}/{language} -->
<map:match pattern="lucene-index/*/*/*/*">
<map:aggregate element="cmsbody">
<map:part src="lenya-document:{3},pub={1},area={2},lang={4}"/>
<map:part src="cocoon:/metadata/{1}/{2}/{3}/{4}"/>
</map:aggregate>
<map:transform src="fallback://lenya/modules/xhtml/xslt/xhtml2index.xsl">
<map:parameter name="url" value="{request:requestURI}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<!-- webdav GET matcher -->
<map:match pattern="davget.xml">
<map:act type="set-header">
<map:parameter name="Last-Modified" value="{date-iso8601-rfc822:{page-envelope:document-lastmodified}}" />
<map:generate src="lenya-document:{page-envelope:document-uuid},lang={page-envelope:document-language}"/>
<map:transform type="uuid2url"/>
<map:transform type="proxy">
<map:parameter name="urls" value="absolute"/>
</map:transform>
<map:serialize type="xml-get"/>
</map:act>
</map:match>
<!-- parametrized doctype matcher -->
<!-- pattern="{format}.xml" -->
<map:match pattern="*.xml">
<map:generate src="cocoon:/{1}.xml/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-uuid}/{page-envelope:document-language}"/>
<map:serialize type="xml"/>
</map:match>
<!-- {format}.xml/{pubId}/{area}/{uuid}/{language} -->
<map:match pattern="*.xml/*/*/*/*">
<map:generate src="lenya-document:{4},lang={5}{link:rev}"/>
<map:transform src="fallback://lenya/modules/xhtml/xslt/xhtml2xhtml.xsl">
<map:parameter name="rendertype" value="{request-param:rendertype}"/>
<map:parameter name="nodeid" value="{doc-info:{2}:{3}:{4}:{5}:nodeName}"/>
<map:parameter name="language" value="{4}"/>
</map:transform>
<map:transform type="cinclude"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="icon/*/*/*/*">
<map:read src="fallback://lenya/modules/xhtml/resources/icons/xhtml.gif"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>