| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright 1999-2004 The Apache Software Foundation |
| |
| Licensed 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. |
| --> |
| |
| <!-- SVN $Id$ --> |
| |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| |
| <map:components> |
| <source-factories> |
| <component-instance class="org.apache.cocoon.components.source.impl.BlockSourceFactory" name="block"/> |
| </source-factories> |
| |
| <input-modules> |
| <component-instance name="block" class="org.apache.cocoon.components.modules.input.BlockPathModule"/> |
| <component-instance logger="core.modules.input" name="request" class="org.apache.cocoon.components.modules.input.RequestModule"/> |
| </input-modules> |
| |
| <map:generators default="file"> |
| <map:generator name="file" src="org.apache.cocoon.generation.FileGenerator"/> |
| </map:generators> |
| |
| <map:transformers default="xslt"> |
| <map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer"/> |
| <map:transformer name="linkrewriter" src="org.apache.cocoon.transformation.LinkRewriterTransformer"> |
| <link-attrs>href src</link-attrs> |
| <schemes>block</schemes> |
| </map:transformer> |
| </map:transformers> |
| |
| <map:serializers default="html"> |
| <map:serializer mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer"/> |
| <map:serializer mime-type="text/html" name="html" src="org.apache.cocoon.serialization.HTMLSerializer"> |
| <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public> |
| <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system> |
| </map:serializer> |
| |
| </map:serializers> |
| |
| <map:readers default="resource"> |
| <map:reader name="resource" src="org.apache.cocoon.reading.ResourceReader"/> |
| </map:readers> |
| |
| <map:matchers default="wildcard"> |
| <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/> |
| </map:matchers> |
| |
| <map:pipes default="noncaching"> |
| <map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"> |
| </map:pipe> |
| </map:pipes> |
| </map:components> |
| |
| <map:pipelines> |
| <map:pipeline> |
| |
| <map:match pattern=""> |
| <map:generate src="block:/samples.xml"/> |
| <map:transform src="simple-samples2html.xsl"> |
| <map:parameter name="contextPath" value="{request:contextPath}"/> |
| </map:transform> |
| <map:transform type="linkrewriter"/> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match pattern="samples.xml"> |
| <map:generate src="samples.xml"/> |
| <map:serialize type="xml"/> |
| </map:match> |
| |
| <map:match pattern="test*"> |
| <map:generate src="test.xml"/> |
| <map:serialize type="xml"/> |
| </map:match> |
| |
| <!-- images --> |
| <map:match pattern="images/*.gif"> |
| <map:read src="resources/images/{1}.gif" mime-type="image/gif"/> |
| </map:match> |
| |
| <!-- CSS stylesheets --> |
| <map:match pattern="styles/*.css"> |
| <map:read src="resources/styles/{1}.css" mime-type="text/css"/> |
| </map:match> |
| |
| </map:pipeline> |
| </map:pipelines> |
| </map:sitemap> |