blob: b5fd5687920fc308c7b4f6e9f922d5165716441b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- CVS $Id: sitemap.xmap,v 1.16 2003/10/22 11:42:05 joerg Exp $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
<map:components>
<map:generators default="file">
<map:generator name="linkstatus" src="org.apache.cocoon.generation.LinkStatusGenerator"/>
</map:generators>
<map:transformers default="xslt"/>
<map:readers default="resource"/>
<map:serializers default="html"/>
<map:matchers default="wildcard">
<map:matcher logger="sitemap.matcher.header" name="filename" src="org.apache.cocoon.matching.modular.CachingRegexpMatcher">
<input-module name="request-param">
<parameter>filename</parameter>
</input-module>
</map:matcher>
</map:matchers>
<map:selectors default="browser"/>
</map:components>
<!-- =========================== Views =================================== -->
<map:views>
<map:view name="content" from-label="content">
<map:serialize type="xml"/>
</map:view>
<map:view from-label="content" name="pretty-content">
<map:transform src="context://stylesheets/system/xml2html.xslt"/>
<map:serialize type="html"/>
</map:view>
<map:view name="links" from-position="last">
<map:serialize type="links"/>
</map:view>
</map:views>
<!-- =========================== Pipelines ================================= -->
<map:pipelines>
<map:pipeline>
<map:match pattern="">
<map:generate src="samples.xml"/>
<map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize/>
</map:match>
<!-- ========================== Stream ================================= -->
<map:match pattern="order">
<map:generate src="stream/OrderPage.xml"/>
<map:transform src="context://samples/stylesheets/dynamic-page2html.xsl">
<map:parameter name="servletPath" value="{request:servletPath}"/>
<map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
<map:parameter name="contextPath" value="{request:contextPath}"/>
<map:parameter name="file" value=".xsp"/>
</map:transform>
<map:serialize type="html"/>
</map:match>
<map:match pattern="process-order">
<map:generate type="stream">
<map:parameter name="form-name" value="Foo"/>
</map:generate>
<map:transform src="context://stylesheets/system/xml2html.xslt"/>
<map:serialize type="html"/>
</map:match>
<!-- ========================= Other Samples ================================ -->
<map:match pattern="scratchpad">
<map:generate src="scratchpad-samples.xml"/>
<map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize/>
</map:match>
<map:match pattern="blocks">
<map:generate src="block-samples.xml"/>
<map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize/>
</map:match>
<map:match pattern="components">
<map:generate src="components-samples.xml"/>
<map:transform src="context://samples/common/style/xsl/html/simple-samples2html.xsl">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize/>
</map:match>
<!-- ========================= Utilities ================================ -->
<map:match pattern="**sitemap.xmap">
<map:generate src="{0}"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="linkstatus">
<map:redirect-to uri="linkstatus/localhost/8888/docs/index.html"/>
</map:match>
<map:match pattern="linkstatus/*/*/**">
<map:generate type="linkstatus" src="http://{1}:{2}/{3}"/>
<map:transform src="context://stylesheets/system/linkstatus2html.xslt"/>
<map:serialize/>
</map:match>
<map:match pattern="status.html">
<map:generate src="status" type="status"/>
<map:transform src="context://stylesheets/system/status2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize/>
</map:match>
<map:match pattern="clearcache.html">
<map:act type="clear-cache">
<map:generate src="status" type="status"/>
<map:transform src="context://stylesheets/system/status2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize/>
</map:act>
</map:match>
<map:match pattern="clearpersistentstore.html">
<map:act type="clear-persistent-store">
<map:generate src="status" type="status"/>
<map:transform src="context://stylesheets/system/status2html.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize/>
</map:act>
</map:match>
<map:match pattern="request.html">
<map:generate type="request"/>
<map:transform src="context://stylesheets/system/xml2html.xslt"/>
<map:serialize/>
</map:match>
<!-- ======================== Automount =============================== -->
<map:match pattern="*/**">
<map:mount uri-prefix="{1}" src="{1}/" check-reload="yes"/>
</map:match>
</map:pipeline>
<map:pipeline internal-only="true">
<map:match pattern="view-source">
<!-- colourize files that are known to be XML -->
<map:match type="filename" pattern="((xml)|(xsp)|(xmap)|(xconf))$">
<map:generate src="common/view-source.xsp" type="serverpages"/>
<map:serialize/>
</map:match>
<!-- all other files are just send as text -->
<map:read mime-type="text/plain" src="../{request-param:filename}"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>