blob: 813ff4c9dfdd1eb2e3ef7a8acb05682129a4c6b4 [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.
-->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Resources ================================= -->
<map:resources>
<map:resource name="home">
<!-- Load the home page frame -->
<map:generate src="portal/home.xml" label="xml"/>
<!-- Resolve CInclude references to remote services -->
<map:transform type="cinclude"/>
<!-- Dress up the content in a customized skin -->
<map:transform src="stylesheets/page2html.xsl"/>
<map:serialize type="html"/>
</map:resource>
</map:resources>
<!-- =========================== Pipelines ================================= -->
<map:pipelines>
<map:pipeline>
<!-- Portal content is not likely to expire within an hour -->
<!-- This greatly improves user experience -->
<map:parameter name="expires" value="access plus 1 hours"/>
<!-- Portal Syndication - Home -->
<map:match pattern="">
<map:call resource="home"/>
</map:match>
<!-- Commands section -->
<map:match pattern="home">
<map:call resource="home"/>
</map:match>
<!-- Amazon.com section -->
<map:match pattern="frame-amazon">
<map:generate src="cocoon:/amazon-listMania-resource"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="page-amazon-listMania*">
<map:generate src="cocoon:/amazon-listMania-resource"/>
<map:transform src="stylesheets/service2page.xsl">
<map:parameter name="title" value="Amazon List Mania"/>
</map:transform>
<map:transform src="stylesheets/page2html.xsl"/>
<map:serialize type="html"/>
</map:match>
<map:match pattern="page-amazon-bookInfo*">
<map:generate src="cocoon:/amazon-bookInfo-resource"/>
<map:transform src="stylesheets/service2page.xsl">
<map:parameter name="title" value="Amazon Book Details"/>
</map:transform>
<map:transform src="amazon/bookInfo2page.xsl"/>
<map:transform src="stylesheets/page2html.xsl"/>
<map:serialize type="html"/>
</map:match>
<!-- OpenWiki.com section -->
<map:match pattern="frame-openWiki">
<map:generate src="cocoon:/openWiki-resource"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="ow.asp*">
<map:generate src="cocoon:/openWiki-resource"/>
<map:transform src="stylesheets/service2page.xsl">
<map:parameter name="title" value="OpenWiki"/>
</map:transform>
<map:transform src="stylesheets/page2html.xsl"/>
<map:serialize type="html"/>
</map:match>
<map:match pattern="openWiki">
<map:generate src="cocoon:/openWiki-resource"/>
<map:serialize type="xhtml"/>
</map:match>
</map:pipeline>
<!-- Internal resources (@todo should be moved in a resource section?) -->
<map:pipeline>
<map:match pattern="amazon-listMania-resource">
<map:generate type="wsproxy" src="http://xml.amazon.com/onca/xml?v=1.0&amp;t=webservices-20&amp;dev-t=D2GNXHNXXYM094&amp;ListManiaSearch=1AU8KSU46JLPD&amp;type=lite&amp;f=xml" label="xml"/>
<map:transform src="amazon/listMania2xhtml.xsl"/>
<map:serialize type="xhtml"/>
</map:match>
<map:match pattern="amazon-bookInfo-resource">
<map:generate type="wsproxy" src="http://xml.amazon.com/onca/xml?v=1.0&amp;t=webservices-20&amp;dev-t=D2GNXHNXXYM094&amp;type=heavy&amp;f=xml" label="xml"/>
<map:transform src="amazon/bookInfo2xhtml.xsl"/>
<map:serialize type="xhtml"/>
</map:match>
<map:match pattern="openWiki-resource">
<map:generate type="wsproxy" src="http://www.openwiki.com/ow.asp?xml=1" label="xml"/>
<map:transform type="xalan" src="ow/xsl/ow.xsl"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:parameter name="expires" value="access plus 1 hours"/>
<!-- Static files section -->
<map:match pattern="stylesheets/*">
<map:read src="stylesheets/{1}"/>
</map:match>
<map:match pattern="ow/**">
<map:read src="http://www.openwiki.com/ow/{1}"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
<!-- end of file -->