blob: efcf686b3d4f7c90d773b1986d305116b49b6faa [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.
-->
<!-- ============================================================ -->
<!-- Feed Plugin -->
<!-- This plugin replaces generates XDocs from XML feeds such -->
<!-- as RSS. -->
<!-- ============================================================ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:pipelines>
<map:pipeline>
<map:match pattern="*.tagFeed.rss">
<map:generate src="{lm:feeder.tag-{1}.sources}"/>
<map:transform src="{lm:feeder.transform.tagFeed.feedDesc}">
<map:parameter name="tag" value="{1}"/>
</map:transform>
<map:transform src="{lm:feeder.transform.feedDesc.RSS20}"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="**/*.tagFeed.rss">
<map:generate src="{lm:feeder.tag-{2}.sources}"/>
<map:transform src="{lm:feeder.transform.tagFeed.feedDesc}">
<map:parameter name="tag" value="{2}"/>
</map:transform>
<map:transform src="{lm:feeder.transform.feedDesc.RSS20}"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="*.rss">
<map:generate src="{lm:project.{1}.xml}"/>
<map:transform src="{lm:feeder.transform.feedDesc.RSS20}"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="**/*.rss">
<map:generate src="{lm:project.{1}/{2}.xml}"/>
<map:transform src="{lm:feeder.transform.feedDesc.RSS20}"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>