blob: 0c78f043f795419b06c1a62cc100bcf03f5184f7 [file] [log] [blame]
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Views =================================== -->
<map:views>
<map:view from-label="content" name="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 from-position="last" name="links">
<map:serialize type="links"/>
</map:view>
</map:views>
<!-- indicates what flowscript to attach to this sitemap -->
<map:flow language="intercepted-javascript">
<map:script src="basescript.js"/>
</map:flow>
<map:pipelines>
<map:pipeline>
<map:match pattern="*.js">
<map:read src="{0}" mime-type="text/plain"/>
</map:match>
<!--+
| produces the screens called by the flowscript
+-->
<map:match pattern="page/*">
<map:generate type="serverpages" src="screens/{1}.xsp"/>
<map:transform src="context://samples/common/style/xsl/html/simple-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="remove" value="{0}"/>
</map:transform>
<map:serialize/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="">
<map:call function="interceptionTest"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>