| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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"> |
| |
| <map:pipelines> |
| |
| <map:pipeline> |
| |
| <!-- collectionWithChildren/{1:allLanguages(true|false)}/{2:pub}/{3:area}/{4:uuid}/{5:language}.xml --> |
| <map:match pattern="collectionWithChildren/*/*/*/*/*.xml"> |
| <map:generate type="sitetree-fragment"> |
| <map:parameter name="pub" value="{2}"/> |
| <map:parameter name="areas" value="{3}"/> |
| <map:parameter name="area" value="{3}"/> |
| <map:parameter name="uuid" value="{4}"/> |
| <map:parameter name="language" value="{5}"/> |
| <map:parameter name="initial" value="false"/> |
| <map:parameter name="mimetype" value=""/> |
| </map:generate> |
| <map:transform src="fallback://lenya/modules/collection/xslt/sitetree2children.xsl"> |
| <map:parameter name="language" value="{5}"/> |
| <map:parameter name="allLanguages" value="{1}"/> |
| <!-- |
| FIXME: We have to find a way to get the default language without using an input module which would prevent caching. |
| Maybe the sitetree-fragment generator could inject it into the SAX stream? |
| --> |
| <map:parameter name="defaultLanguage" value="en"/> |
| </map:transform> |
| <map:serialize type="xml"/> |
| </map:match> |
| |
| <!-- collection format --> |
| <map:match pattern="collection.xml/*/*/*/*"> |
| <map:generate src="lenya-document:{3},pub={1},area={2},lang={4}{link:rev}"/> |
| <map:transform src="fallback://lenya/modules/collection/xslt/prepareInclude.xsl"> |
| <map:parameter name="pub" value="{1}"/> |
| <map:parameter name="area" value="{2}"/> |
| <map:parameter name="uuid" value="{3}"/> |
| <map:parameter name="language" value="{4}"/> |
| </map:transform> |
| <map:transform type="include"/> |
| <map:serialize type="xml"/> |
| </map:match> |
| |
| </map:pipeline> |
| |
| </map:pipelines> |
| </map:sitemap> |