blob: 35abd2487a0066ca8cf34bff64e2df8b460f2311 [file] [log] [blame]
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- ======================== Components =========================== -->
<map:components>
<map:transformers default="xslt">
<map:transformer name="jx" src="org.apache.cocoon.transformation.JXTemplateTransformer" logger="jx.sitemap.transformer"/>
<map:transformer name="woody" src="org.apache.cocoon.woody.transformation.WoodyTemplateTransformer" logger="woody"/>
</map:transformers>
<map:generators default="file">
<map:generator logger="sitemap.generator.velocity" name="velocity" src="org.apache.cocoon.generation.VelocityGenerator"/>
<map:generator logger="sitemap.generator.jx" name="jx" src="org.apache.cocoon.generation.JXTemplateGenerator"/>
<map:generator name="woody" src="org.apache.cocoon.woody.generation.WoodyGenerator" logger="woody"/>
</map:generators>
<map:serializers default="html"/>
<map:matchers default="wildcard"/>
</map:components>
<!-- ======================== Views ================================ -->
<!--
The debug view can be used to output an intermediate
snapshot of the pipeline.
Pass cocoon-view=debug as a URL parameter to see
the pipeline output produced by the transofrmer
labeled "debug". You can move the label to different
transformers to understand each processing
stage better.
-->
<map:views>
<map:view name="debug" from-label="debug">
<map:serialize type="xml"/>
</map:view>
<map:view name="debug1" from-label="debug1">
<map:serialize type="xml"/>
</map:view>
</map:views>
<!-- ======================== Resources ============================ -->
<map:resources>
<map:resource name="html">
<map:transform src="stylesheets/site2html.xsl"/>
<map:serialize type="html"/>
</map:resource>
</map:resources>
<!-- ======================== Flow ================================= -->
<map:flow language="javascript">
<map:script src="flow/PetStoreImpl.js"/>
<map:script src="flow/petstore.js"/>
</map:flow>
<!-- ======================== Pipelines ============================ -->
<map:pipelines>
<map:pipeline>
<map:match pattern="*.kont">
<!-- This handles sendPage*() continuations.-->
<map:call continuation="{1}"/>
</map:match>
<map:match pattern="*.do">
<map:call function="main">
<map:parameter name="page" value="{1}"/>
</map:call>
</map:match>
<map:match pattern="">
<map:call function="index"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="view/*.xsp">
<map:generate src="view/xsp/{1}.xsp" type="serverpages" label="debug"/>
<map:call resource="html"/>
</map:match>
<map:match pattern="view/*.jxpath">
<map:generate src="view/jxpath/{1}.xml" type="file" />
<map:transform type="jx" label="debug"/>
<map:call resource="html"/>
</map:match>
<map:match pattern="view/*.jexl">
<map:generate src="view/jexl/{1}.xml" type="jx" label="debug"/>
<map:call resource="html"/>
</map:match>
<map:match pattern="view/*.vm">
<map:generate src="view/templates/{1}.vm" type="velocity" label="debug"/>
<map:serialize type="html"/>
</map:match>
<map:match pattern="view/*.cforms">
<map:generate src="view/forms/{1}_t.xml" label="debug"/>
<map:transform type="woody" label="debug1"/>
<map:call resource="html"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="images/*.gif">
<map:read mime-type="images/gif" src="images/{1}.gif"/>
</map:match>
<map:match pattern="images/*.jpg">
<map:read mime-type="images/jpeg" src="images/{1}.jpg"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
<!-- end of file -->