blob: 0e4f3e9aac5f05d1f6e4cb38f03ed17a85dc2223 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 1999-2004 The Apache Software Foundation
Licensed 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: sitemap.xmap,v 1.128 2004/04/29 15:33:49 gregor Exp $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
<map:components>
<map:generators default="file">
<map:generator name="file" label="content,data" logger="sitemap.generator.file" pool-grow="4" pool-max="32" pool-min="8" src="org.apache.cocoon.generation.FileGenerator"/>
<map:generator name="file-nolabel" label="content,data" logger="sitemap.generator.file-nolabel" pool-grow="4" pool-max="32" pool-min="8" src="org.apache.cocoon.generation.FileGenerator"/>
<map:generator name="serverpages" label="content,data" logger="sitemap.generator.serverpages" pool-grow="2" pool-max="32" pool-min="4" src="org.apache.cocoon.generation.ServerPagesGenerator"/>
<map:generator name="proxy" label="content" logger="sitemap.generator.proxy" src="org.apache.cocoon.generation.HttpProxyGenerator"/>
<map:generator name="notifying" src="org.apache.cocoon.sitemap.NotifyingGenerator"/>
<map:generator name="servletproxy" src="org.apache.lenya.cms.cocoon.generation.ProxyGenerator"/>
</map:generators>
<map:transformers default="xslt">
<map:transformer name="xinclude" logger="sitemap.transformer.xinclude" pool-grow="2" pool-max="16" pool-min="2" src="org.apache.cocoon.transformation.XIncludeTransformer"/>
<map:transformer name="i18n" logger="sitemap.transformer.i18n" src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="cmsui">
<catalogue id="cmsui" name="cmsui" location="cocoon://i18n-catalogue/"/>
</catalogues>
<untranslated-text>untranslated</untranslated-text>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
<map:transformer name="xlink" src="org.apache.lenya.cms.cocoon.transformation.IncludeTransformer">
<publication type=""/>
</map:transformer>
<!-- NOTE: XSLTC is now the default processor. If you use Xalan extensions, use the "xalan" transformer. -->
<map:transformer name="xslt" logger="sitemap.transformer.xslt" pool-grow="2" pool-max="32" pool-min="8" 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>
<transformer-factory>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</transformer-factory>
</map:transformer>
<!-- NOTE: This used to be the default XSLT processor. The default now is XSLTC -->
<map:transformer name="xalan" logger="sitemap.transformer.xalan" pool-grow="2" pool-max="32" pool-min="8" 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>
<transformer-factory>org.apache.xalan.processor.TransformerFactoryImpl</transformer-factory>
</map:transformer>
</map:transformers>
<map:serializers default="html">
<map:serializer name="links" logger="sitemap.serializer.links" src="org.apache.cocoon.serialization.LinkSerializer"/>
<map:serializer name="xml" logger="sitemap.serializer.xml" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer"/>
<map:serializer name="html" logger="sitemap.serializer.html" mime-type="text/html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
<doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
<buffer-size>1024</buffer-size>
<encoding>UTF-8</encoding>
</map:serializer>
<map:serializer name="html-no-dtd" logger="sitemap.serializer.html-no-dtd" mime-type="text/html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
<buffer-size>1024</buffer-size>
</map:serializer>
<map:serializer name="html-iso-8859-1" logger="sitemap.serializer.html-iso-8859-1" mime-type="text/html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
<buffer-size>1024</buffer-size>
<doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
<encoding>ISO-8859-1</encoding>
</map:serializer>
<map:serializer name="xhtml" logger="sitemap.serializer.xhtml" mime-type="text/html" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
<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:serializer name="xhtml-iso-8859-1" logger="sitemap.serializer.xhtml-iso-8859-1" mime-type="text/html" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
<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>ISO-8859-1</encoding>
</map:serializer>
<map:serializer name="text" logger="sitemap.serializer.text" mime-type="text/plain" src="org.apache.cocoon.serialization.TextSerializer"/>
<map:serializer name="text-iso-8859-1" logger="sitemap.serializer.text-iso-8859-1" mime-type="text/plain" src="org.apache.cocoon.serialization.TextSerializer">
<encoding>ISO-8859-1</encoding>
</map:serializer>
<map:serializer name="text-utf-8" logger="sitemap.serializer.text-iso-8859-1" mime-type="text/plain" src="org.apache.cocoon.serialization.TextSerializer">
<encoding>UTF-8</encoding>
</map:serializer>
</map:serializers>
<map:readers default="resource">
<map:reader name="resource" logger="sitemap.reader.resource" pool-max="32" src="org.apache.cocoon.reading.ResourceReader"/>
</map:readers>
<map:matchers default="wildcard">
<map:matcher name="wildcard" logger="sitemap.matcher.wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
<map:matcher name="regexp" logger="sitemap.matcher.regexp" src="org.apache.cocoon.matching.RegexpURIMatcher"/>
<map:matcher name="request-parameter" logger="sitemap.matcher.request-parameter" src="org.apache.cocoon.matching.RequestParameterMatcher"/>
<map:matcher name="usecase" logger="sitemap.matcher.usecase" src="org.apache.cocoon.matching.WildcardRequestParameterMatcher">
<parameter-name>lenya.usecase</parameter-name>
</map:matcher>
<map:matcher name="step" logger="sitemap.matcher.step" src="org.apache.cocoon.matching.WildcardRequestParameterMatcher">
<parameter-name>lenya.step</parameter-name>
</map:matcher>
</map:matchers>
<map:selectors default="browser">
<map:selector name="request-parameter" logger="sitemap.selector.request-parameter" src="org.apache.cocoon.selection.RequestParameterSelector">
<!-- Define now which request parameter to use; or do it later,
when using this selector, via "parameter-name" parameter.
<parameter-name>myparam</parameter-name>
-->
</map:selector>
<map:selector name="resource-exists" logger="sitemap.selector.resource-exists" src="org.apache.cocoon.selection.ResourceExistsSelector"/>
<map:selector name="exception" logger="sitemap.selector.exception" src="org.apache.cocoon.selection.ExceptionSelector">
<exception name="sax" class="org.xml.sax.SAXException" unroll="true"/>
<exception name="resourcenotfound" class="org.apache.cocoon.ResourceNotFoundException" unroll="true"/>
<exception name="document-does-not-exist" class="org.apache.lenya.cms.publication.DocumentDoesNotExistException"/>
<exception name="invalid-continuation" class="org.apache.cocoon.components.flow.InvalidContinuationException"/>
<exception class="org.apache.cocoon.ProcessingException" unroll="true"/>
<!-- 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:actions>
<map:action name="request" logger="sitemap.action.request" src="org.apache.cocoon.acting.RequestParamAction"/>
<map:action name="resource-exists" logger="sitemap.action.resource-exists" src="org.apache.cocoon.acting.ResourceExistsAction"/>
<map:action name="parent-child" logger="sitemap.action.parent-child" src="org.apache.lenya.cms.cocoon.acting.ParentChildCreatorAction">
<tree-authoring href="content/authoring/tree.xml"/>
<docs href="content/authoring"/>
<doctypes href="config/doctypes/"/>
</map:action>
<map:action name="xopushandler" logger="sitemap.action.xopus" src="org.apache.lenya.cms.cocoon.acting.XopusHandlerAction">
<xml href="content/authoring/"/>
<xsl href="xslt"/>
<xsd href="config/doctypes/schemas"/>
<temp href="temp"/>
<rcmlDirectory href="content/rcml"/>
<backupDirectory href="content/rcbak"/>
</map:action>
<map:action name="reserved-checkout" src="org.apache.lenya.cms.cocoon.acting.ReservedCheckoutAction" logger="sitemap.action.reserved-checkout"/>
<map:action name="reserved-checkin" src="org.apache.lenya.cms.cocoon.acting.ReservedCheckinAction" logger="sitemap.action.reserved-checkin"/>
<map:action name="rollback" src="org.apache.lenya.cms.cocoon.acting.RollbackAction"/>
<map:action name="upload" logger="sitemap.action.upload" src="org.apache.lenya.cms.cocoon.acting.UploadAction">
<resources-root href="resources/images/live"/>
<docs-root href="content/authoring"/>
<meta-root href="content/authoring/"/>
</map:action>
<map:action name="task" logger="sitemap.action.task" src="org.apache.lenya.cms.cocoon.acting.TaskAction"/>
<map:action name="uriparametrizer" src="org.apache.lenya.cms.cocoon.acting.URIParametrizerAction" logger="sitemap.action.uriparametrizer"/>
<!-- TODO: is also defined within global-sitemap.xmap. Is this necessary? -->
<map:action name="default-create" src="org.apache.lenya.cms.cocoon.acting.DefaultCreatorAction" logger="sitemap.action.default-create">
<tree-authoring href="content/authoring/sitetree.xml"/>
<docs href="content/authoring"/>
<doctypes href="config/doctypes/"/>
</map:action>
<map:action name="resource-exists-enhanced" logger="sitemap.action.resource-exists-enhanced" src="org.apache.lenya.cms.cocoon.acting.ResourceExistsAction"/>
<map:action name="authorizer" src="org.apache.lenya.cms.cocoon.acting.DelegatingAuthorizerAction" logger="lenya.sitemap.action.authorizer"/>
<map:action name="authenticator" src="org.apache.lenya.cms.cocoon.acting.DelegatingAuthenticatorAction" logger="lenya.sitemap.action.authenticator"/>
</map:actions>
<map:pipes default="caching">
<map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"/>
<map:pipe name="caching-point" src="org.apache.cocoon.components.pipeline.impl.CachingPointProcessingPipeline">
<autoCachingPoint>On</autoCachingPoint>
</map:pipe>
<map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"/>
<!-- The following two can be used for profiling:-->
<map:pipe name="profile-caching" src="org.apache.cocoon.components.profiler.ProfilingCachingProcessingPipeline"/>
<map:pipe name="profile-noncaching" src="org.apache.cocoon.components.profiler.ProfilingNonCachingProcessingPipeline"/>
</map:pipes>
</map:components>
<!-- =========================== Views =================================== -->
<!--+
| Views provide diffent, well, views to resources. Views are
| orthogonal to pipelines. Please refer to the docs.
+-->
<map:views>
<map:view name="first" from-position="first">
<map:serialize type="xml"/>
</map:view>
<map:view name="last" from-position="last">
<map:serialize type="xml"/>
</map:view>
<map:view from-label="content" name="content">
<map:serialize type="xml"/>
</map:view>
<map:view from-label="data" name="pretty-content">
<map:transform src="stylesheets/simple-xml2html.xsl"/>
<map:serialize type="html"/>
</map:view>
<map:view from-position="last" name="links">
<map:serialize type="links"/>
</map:view>
<map:view from-label="aggregate" name="aggregate">
<map:serialize type="xml"/>
</map:view>
</map:views>
<!-- =========================== Resources ================================= -->
<map:resources>
<map:resource name="style-cms-page">
<map:transform type="i18n">
<map:parameter name="locale" value="{request:locale}"/>
</map:transform>
<map:transform src="lenya/xslt/util/page2xhtml.xsl">
<map:parameter name="contextprefix" value="{request:contextPath}"/>
</map:transform>
<map:transform src="lenya/xslt/util/strip_namespaces.xsl"/>
<map:serialize/>
</map:resource>
</map:resources>
<!-- =========================== Pipelines ================================= -->
<map:pipelines>
<!-- I18N -->
<map:pipeline>
<map:match pattern="i18n-catalogue/**">
<map:mount uri-prefix="" src="lenya/i18n.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
</map:pipeline>
<map:pipeline>
<!-- Lenya GUI screen -->
<map:match pattern="lenya-screen.xsl">
<map:generate src="lenya/xslt/util/page2xhtml.xsl"/>
<map:transform src="lenya/xslt/util/page2xslt.xsl">
<map:parameter name="contextprefix" value="{request:contextPath}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<map:match type="usecase" pattern="login">
<map:match type="step" pattern="showscreen">
<map:generate type="serverpages" src="lenya/content/ac/login.xsp"/>
<map:transform src="lenya/xslt/ac/login.xsl">
<map:parameter name="publication_name" value="{page-envelope:publication-id}"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<map:match type="step" pattern="login">
<map:act type="authenticator">
<map:redirect-to uri="{request:requestURI}" session="true"/>
</map:act>
<map:redirect-to uri="{request:requestURI}?lenya.usecase=login&amp;lenya.step=showscreen&amp;status=failed" session="true"/>
</map:match>
</map:match>
<map:match type="usecase" pattern="logout">
<map:generate type="serverpages" src="lenya/content/ac/logout.xsp"/>
<map:transform src="lenya/xslt/ac/logout.xsl">
<map:parameter name="publication_name" value="{page-envelope:publication-id}"/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
</map:transform>
<map:call resource="style-cms-page"/>
</map:match>
<!-- images -->
<map:match pattern="images/*.gif">
<map:read mime-type="images/gif" src="resources/images/{1}.gif"/>
</map:match>
<!-- CSS stylesheets -->
<map:match pattern="styles/*.css">
<map:read mime-type="text/css" src="resources/styles/{1}.css"/>
</map:match>
<!-- JavaScript scripts -->
<map:match pattern="scripts/*.js">
<map:read mime-type="text/javascript" src="resources/scripts/{1}.js"/>
</map:match>
<!-- favicon -->
<map:match pattern="**favicon.ico">
<map:read mime-type="image/x-icon" src="resources/icons/cocoon.ico"/>
</map:match>
<map:handle-errors>
<map:generate type="notifying"/>
<map:transform src="stylesheets/system/error2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize type="html"/>
</map:handle-errors>
</map:pipeline>
<map:pipeline internal-only="true">
<map:match pattern="**">
<map:mount uri-prefix="" src="global-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
<map:handle-errors>
<map:generate type="notifying"/>
<map:transform src="stylesheets/system/error2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize type="html"/>
</map:handle-errors>
</map:pipeline>
<map:pipeline>
<map:match pattern="**">
<map:act type="authorizer">
<map:mount uri-prefix="" src="global-sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:act>
<map:redirect-to uri="{request:requestURI}?lenya.usecase=login&amp;lenya.step=showscreen" session="true"/>
</map:match>
<map:handle-errors>
<map:generate type="notifying"/>
<map:transform src="stylesheets/system/error2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize type="html"/>
</map:handle-errors>
</map:pipeline>
</map:pipelines>
</map:sitemap>