| <?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> |
| <input-modules> |
| <component-instance name="block-property" class="org.apache.cocoon.components.modules.input.BlockPropertyModule"/> |
| </input-modules> |
| |
| <map:serializers default="xml"> |
| <map:serializer mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer"/> |
| </map:serializers> |
| |
| <map:readers default="resource"> |
| <map:reader name="resource" src="org.apache.cocoon.reading.ResourceReader"/> |
| </map:readers> |
| </map:components> |
| |
| <map:pipelines> |
| <map:pipeline type="noncaching"> |
| |
| <map:match type="wildcard" pattern="test"> |
| <map:generate type="file" src="test.xml"/> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match type="wildcard" pattern="test4"> |
| <map:generate type="file" src="block:super:/test"/> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match type="wildcard" pattern="prop"> |
| <map:generate type="file" src="test.xml"/> |
| <map:transform type="xslt" src="block-properties.xsl"> |
| <map:parameter name="foo" value="{block-property:foo}"/> |
| <map:parameter name="bar" value="{block-property:bar}"/> |
| <map:parameter name="baz" value="{block-property:baz}"/> |
| </map:transform> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match type="wildcard" pattern="**"> |
| <map:read src="block:super:/{1}"/> |
| </map:match> |
| |
| </map:pipeline> |
| </map:pipelines> |
| </map:sitemap> |