blob: b1fab854bc948f39429849acec1c07e3af4a2b46 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- CVS $Id: sitemap.xmap,v 1.3 2004/02/07 15:13:26 joerg Exp $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== 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>
<!-- ================ NEWS =========================== -->
<map:match pattern="slashdot">
<map:generate src="http://slashdot.org/slashdot.xml"/>
<map:transform src="stylesheets/slashdot.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="**.gif">
<map:read mime-type="image/gif" src="http://images.slashdot.org/topics/{1}.gif"/>
</map:match>
<map:match pattern="**.jpg">
<map:read mime-type="image/jpg" src="http://images.slashdot.org/topics/{1}.jpg"/>
</map:match>
<map:match pattern="moreover">
<map:generate src="http://www.moreover.com/cgi-local/page?o=xml&amp;c=Developer%20news"/>
<map:transform src="stylesheets/moreover.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="xmlhack">
<map:generate src="http://www.xmlhack.com/cdf.cdf"/>
<map:transform src="stylesheets/xmlhack.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="aggregate">
<map:aggregate element="page">
<!--+
| Aggregation is a very powerful concept that allows a document
| be generated from several other documents. Strictly speaking,
| all parts are just concatenated in this order to a new
| document.
|
| Several things to note here:
|
| "cocoon:" is a pseudo protocol and refers to another
| pipeline. "cocoon:/" refers to a pipeline from the current
| sitemap while "cocoon://" refers to a pipeline from the root
| sitemap.
|
| Other pseudo protocols exist:
|
| "context:" is another pseudo protocol, "context://" is
| refering to a resource using the servlet context.
|
| "resource:" is yet another pseudo protocol, "resource://" is
| refering to a resource from the context classloader.
|
| All these pseudo protocols are declared in the cocoon.xconf.
|
| Thus, the parts refer to the pipeline fragments above.
|
| The optional element attribute places the content in a new root
| element named as specified, using the namespace provided by an
| optional ns attribute.
|
| Please see docs for further explanations.
+-->
<map:part src="cocoon:/slashdot" element="slashdot"/>
<map:part src="cocoon:/moreover" element="moreover"/>
<map:part src="cocoon:/xmlhack" element="xmlhack"/>
</map:aggregate>
<map:transform src="stylesheets/news.xsl"/>
<map:serialize/>
</map:match>
<!-- Aggregation using the Cocoon Include transformer -->
<map:match pattern="aggregate2">
<map:generate src="aggregate.xml"/>
<map:transform type="cinclude"/>
<map:transform type="xsltc" src="stylesheets/news.xsl"/>
<map:serialize/>
</map:match>
<!-- TODO: Aggregation using the XInclude transformer -->
<!-- XInclude Samples -->
<map:match pattern="*.html">
<map:generate src="content/{1}.xml"/>
<map:transform type="xinclude"/>
<map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
<map:parameter name="contextPath" value="{request:contextPath}"/>
<map:parameter name="servletPath" value="{request:servletPath}"/>
<map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
<map:parameter name="file" value="content/test.xml"/>
<map:parameter name="remove" value="{0}"/>
</map:transform>
<map:serialize/>
</map:match>
<!-- Source Files -->
<map:match pattern="*.xml">
<map:generate src="content/{1}.xml"/>
<map:serialize/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>