| <?xml version="1.0"?> |
| <!-- |
| Copyright 2005 The Apache Software Foundation or its licensors, |
| as applicable. |
| |
| 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. |
| --> |
| |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| <map:pipelines> |
| <map:pipeline> |
| <map:mount uri-prefix="" |
| src="elsewhere/sitemap.xmap" pass-through="true"/> |
| |
| <map:match pattern="sub/**"> |
| <map:mount src="sub/" uri-prefix="sub"/> |
| </map:match> |
| |
| <map:match pattern="welcome"> |
| <map:generate src="welcome.xml"/> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match pattern="welcome1"> |
| <map:generate src="cocoon:/welcome"/> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match pattern="welcome2"> |
| <map:generate src="cocoon:/welcome1"/> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match pattern="welcome3"> |
| <map:generate src="cocoon:/welcome2"/> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match pattern="hellosub"> |
| <!-- This pattern deliberately produces and error, as it is meant to trap |
| wrong active processor in the handling of sub/sub1 --> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match pattern="subsub1"> |
| <map:generate src="cocoon:/sub/sub1"/> |
| <map:serialize/> |
| </map:match> |
| |
| <map:match pattern="aggregate"> |
| <map:aggregate element="root"> |
| <map:part src="cocoon:/welcome3"/> |
| <map:part src="cocoon:/welcome3"/> |
| <map:part src="cocoon:/subsub1"/> |
| </map:aggregate> |
| <map:serialize/> |
| </map:match> |
| |
| <!-- a test that produces an NPE in SitemapSource when there's a pass-through mount in the same directory --> |
| |
| <map:mount uri-prefix="" |
| src="another-sitemap.xmap" pass-through="true"/> |
| |
| </map:pipeline> |
| </map:pipelines> |
| </map:sitemap> |