blob: 2710796c80eb50b654e70855bd758d7fd7b3a71e [file] [log] [blame]
<?xml version="1.0"?>
<!--
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$ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:generators default="file">
<map:generator logger="sitemap.generator.traversable" name="traversable" src="org.apache.cocoon.generation.TraversableGenerator"/>
<map:generator logger="sitemap.generator.blog" name="blog" src="org.apache.cocoon.generation.BlogGenerator"/>
<map:generator logger="sitemap.generator.blogoverview" name="blogoverview" src="org.apache.cocoon.generation.BlogOverviewGenerator"/>
</map:generators>
</map:components>
<map:resources>
<map:resource name="style-cms-page">
<map:transform type="i18n">
<map:parameter name="locale" value="{request:locale}"/>
</map:transform>
<map:transform src="fallback://lenya/xslt/util/page2xhtml.xsl">
<map:parameter name="contextprefix" value="{request:contextPath}"/>
</map:transform>
<map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
<map:serialize/>
</map:resource>
</map:resources>
<map:pipelines>
<map:component-configurations>
<global-variables>
<blog-url>http://192.168.1.77:8888/blog</blog-url>
</global-variables>
</map:component-configurations>
<!-- WebDAV -->
<map:pipeline>
<map:match pattern="webdav/**">
<map:mount src="webdav.xmap" uri-prefix="webdav" check-reload="yes"/>
</map:match>
<map:match pattern="**/index.webdav.xml">
<map:mount src="webdav.xmap" uri-prefix="" check-reload="yes"/>
</map:match>
</map:pipeline>
<!-- AtomAPI -->
<map:pipeline>
<map:match pattern="atomapi/**">
<map:mount src="atomapi.xmap" uri-prefix="atomapi" check-reload="yes"/>
</map:match>
</map:pipeline>
<!-- Redirects -->
<map:pipeline>
<map:match pattern="*/">
<map:redirect-to uri="feeds/all/index.html"/>
</map:match>
<map:match pattern="*/index.html">
<map:redirect-to uri="feeds/all/index.html"/>
</map:match>
<map:match pattern="*/sidebar.html">
<map:redirect-to uri="feeds/all/index.html"/>
</map:match>
</map:pipeline>
<!-- Entries -->
<map:pipeline>
<map:match pattern="*/entries/*/*/*/*/introspection.xml">
<map:generate src="content/introspection.xml"/>
<map:transform src="xslt/entry/introspection.xsl">
<map:parameter name="editURL" value="{global:blog-url}/authoring/entries/{2}/{3}/{4}/{5}/index.html"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="*/entries/*/*/*/*/index.xml">
<map:select type="request-parameter">
<map:parameter name="parameter-name" value="lenya.step"/>
<map:when test="view-revision"> <!-- view of an older version -->
<map:generate type="serverpages" src="fallback://lenya/content/rc/view.xsp"/>
<map:transform src="fallback://lenya/xslt/rc/toDoc.xsl"/>
</map:when>
<map:otherwise>
<map:generate src="site://{page-envelope:publication-id}/{1}/en/entries/{2}/{3}/{4}/{5}/index"/>
</map:otherwise>
</map:select>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/entries/*/*/*/*/index.rss">
<map:select type="request-parameter">
<map:parameter name="parameter-name" value="lenya.step"/>
<map:when test="view-revision"> <!-- view of an older version -->
<map:generate type="serverpages" src="fallback://lenya/content/rc/view.xsp"/>
<map:transform src="fallback://lenya/xslt/rc/toDoc.xsl"/>
</map:when>
<map:otherwise>
<map:generate src="site://{page-envelope:publication-id}/{1}/en/entries/{2}/{3}/{4}/{5}/index"/>
<map:transform src="xslt/feed/atom2other.xsl">
<map:parameter name="type" value="rss"/>
<map:parameter name="url" value="{global:blog-url}"/>
<map:parameter name="area" value="{1}"/>
</map:transform>
</map:otherwise>
</map:select>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/entries/*/*/*/*/lenya-body.xml">
<map:aggregate element="feed">
<map:part src="site:/en/feeds/all/index"/>
<map:part src="cocoon:/{1}/entries/{2}/{3}/{4}/{5}/index.xml"/>
<map:part src="site:/en/sidebar"/>
<map:part src="cocoon:/{1}/overview?struct=23"/>
</map:aggregate>
<map:transform src="xslt/entry/aggregate.xsl"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/entries/*/*/*/*/lenya-page-body.xml">
<map:aggregate element="cmsbody">
<map:part src="cocoon:/{1}/entries/{2}/{3}/{4}/{5}/lenya-body.xml"/>
<map:part src="site:/en/sidebar"/>
</map:aggregate>
<map:transform src="xslt/links.xsl">
<map:parameter name="relpath" value="../../../../../feeds/all"/>
<map:parameter name="area" value="{1}"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/entries/*/*/*/*/index.html">
<map:generate src="cocoon:/{1}/entries/{2}/{3}/{4}/{5}/lenya-page-body.xml"/>
<map:transform src="xslt/entry/main-{1}.xsl">
<map:parameter name="contextprefix" value="{request:contextPath}"/>
<map:parameter name="relative2root" value="../../../../.."/>
</map:transform>
<map:select type="browser">
<map:when test="mozilla5DISABLED">
<map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/entry.xml?uiml=xul"/>
<map:serialize type="xml" mime-type="application/vnd.mozilla.xul+xml"/>
</map:when>
<map:otherwise>
<map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/entry.xml"/>
<map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
<map:serialize type="xhtml"/>
</map:otherwise>
</map:select>
</map:match>
</map:pipeline>
<!-- Entry Overwiev -->
<map:pipeline>
<map:match pattern="*/overview">
<map:generate type="blogoverview">
<map:parameter name="area" value="{1}"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/overview/lenya-page-body.xml">
<map:aggregate element="cmsbody">
<map:part src="site:/en/feeds/all/index"/>
<map:part src="site:/en/sidebar"/>
<map:part src="cocoon:/{1}/overview"/>
<map:part src="cocoon:/{1}/overview?struct=23"/>
</map:aggregate>
<map:transform src="xslt/links.xsl">
<map:parameter name="area" value="{1}"/>
<map:parameter name="relpath" value="."/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/overview.html">
<map:generate src="cocoon:/{1}/overview/lenya-page-body.xml"/>
<map:transform type="xalan" src="xslt/overview/main.xsl">
<map:parameter name="relative2root" value="."/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
</map:transform>
<map:serialize type="xhtml"/>
</map:match>
</map:pipeline>
<!-- Feeds -->
<map:pipeline>
<map:match pattern="*/feeds/*/introspection.xml">
<map:generate src="content/introspection.xml"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<!-- RSS Feed -->
<map:match pattern="*/feeds/*/index.rss">
<map:generate type="blog">
<map:parameter name="area" value="{1}"/>
</map:generate>
<map:transform src="xslt/feed/xinclude.xsl">
<map:parameter name="feedid" value="{2}"/>
<map:parameter name="area" value="{1}"/>
</map:transform>
<map:transform type="xinclude"/>
<map:transform src="xslt/feed/atom2other.xsl">
<map:parameter name="type" value="rss"/>
<map:parameter name="url" value="{global:blog-url}"/>
<map:parameter name="area" value="{1}"/>
</map:transform>
<map:transform src="../../xslt/util/strip_namespaces.xsl"/>
<map:serialize type="xml"/>
</map:match>
<!-- Atom Feed -->
<map:match pattern="*/feeds/*/index.xml">
<map:generate type="blog">
<map:parameter name="area" value="{1}"/>
</map:generate>
<map:transform src="xslt/feed/xinclude.xsl">
<map:parameter name="feedid" value="{2}"/>
<map:parameter name="area" value="{1}"/>
</map:transform>
<map:transform type="xinclude"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*/feeds/*/lenya-page-body.xml">
<map:aggregate element="cmsbody">
<map:part src="cocoon:/{1}/feeds/{2}/index.xml"/>
<map:part src="site:/en/sidebar"/>
<map:part src="cocoon:/{1}/overview?struct=23"/>
</map:aggregate>
<map:transform src="xslt/links.xsl">
<map:parameter name="area" value="{1}"/>
<map:parameter name="relpath" value="."/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
<!-- Entry point for feed/category requests ({area}/feeds/{feed-id}/index.html, e.g. authoring/feeds/all/index.html) -->
<map:match pattern="*/feeds/*/index.html">
<map:generate src="cocoon:/{1}/feeds/{2}/lenya-page-body.xml"/>
<map:transform type="xalan" src="xslt/feed/main-{1}.xsl">
<map:parameter name="relative2root" value="../.."/>
<map:parameter name="contextprefix" value="{request:contextPath}"/>
</map:transform>
<!-- Apply Lenya menus -->
<map:select type="browser">
<map:when test="mozilla5DISABLED">
<!-- XUL menus -->
<map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/feed.xml?uiml=xul"/>
<map:serialize type="xml" mime-type="application/vnd.mozilla.xul+xml"/>
</map:when>
<map:otherwise>
<!-- XHTML menus -->
<map:transform src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/feed.xml"/>
<map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
<map:serialize type="xhtml"/>
</map:otherwise>
</map:select>
</map:match>
</map:pipeline>
<!-- Pipeline to debug Lenya menu (XSLT) -->
<map:pipeline>
<map:match pattern="*/feeds/*/index.html.lenyamenu">
<map:select type="browser">
<map:when test="mozilla5DISABLED">
<!-- XUL menus -->
<map:generate src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/feed.xml?uiml=xul"/>
</map:when>
<map:otherwise>
<!-- XHTML menus -->
<map:generate src="cocoon://lenya-page/{page-envelope:publication-id}/{1}/feed.xml"/>
</map:otherwise>
</map:select>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>