| <?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. |
| --> |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| <map:components> |
| <map:generators> |
| <map:generator name="directory" src="org.apache.cocoon.generation.DirectoryGenerator"/> |
| </map:generators> |
| <map:transformers default="xslt"> |
| <map:transformer name="cinclude" src="org.apache.cocoon.transformation.CIncludeTransformer"/> |
| <map:transformer name="i18n" |
| src="org.apache.cocoon.transformation.I18nTransformer"> |
| <catalogues default="projectInfo"> |
| <catalogue id="other" name="OtherMessages" location="{lm:project.translations}" /> |
| <catalogue id="projectInfo" name="ProjectInfoMessages" location="{lm:project.translations}" /> |
| </catalogues> |
| <cache-at-startup>true</cache-at-startup> |
| </map:transformer> |
| </map:transformers> |
| <map:actions> |
| <map:action logger="sitemap.action.sourcetype" name="sourcetype" |
| src="org.apache.forrest.sourcetype.SourceTypeAction"> |
| <sourcetype name="foaf"> |
| <document-element namespace="http://xmlns.com/foaf/0.1/"/> |
| </sourcetype> |
| </map:action> |
| </map:actions> |
| <map:pipes> |
| <map:pipe name="navigation" |
| src="org.apache.cocoon.components.pipeline.impl.ExpiresCachingProcessingPipeline"> |
| <parameter name="cache-expires" value="600"/> |
| <!-- Expires in seconds --> |
| </map:pipe> |
| </map:pipes> |
| </map:components> |
| <map:pipelines> |
| <map:pipeline type="navigation"> |
| <!-- ================================================================ --> |
| <!-- Site.xml snippets --> |
| <!-- ================================================================ --> |
| <map:match pattern="personDetails/descriptorIndex.xml"> |
| <map:generate type="file" src="{properties:content}/locationmap.xml" /> |
| <map:transform src="{lm:foaf.transform.locationmap.descriptorIndex}"/> |
| <map:transform type="cinclude"/> |
| <map:serialize type="xml"/> |
| </map:match> |
| <!-- ================================================================ --> |
| <!-- indexes --> |
| <!-- ================================================================ --> |
| <map:match pattern="personDetails.source.xml"> |
| <map:generate type="file" src="{lm:foaf.descriptor}" /> |
| <map:transform src="{lm:foaf.transform.foaf.foafExpandedSeeAlso}"/> |
| <map:transform src="{lm:foaf.transform.foaf.foafNoDuplicateNodes}"/> |
| <map:serialize type="xml"/> |
| </map:match> |
| <map:match pattern="personDetails/*.source.xml"> |
| <map:generate type="file" src="{lm:foaf.descriptor.{1}}" /> |
| <map:transform src="{lm:foaf.transform.foaf.foafExpandedSeeAlso}"/> |
| <map:transform src="{lm:foaf.transform.foaf.foafNoDuplicateNodes}"/> |
| <map:serialize type="xml"/> |
| </map:match> |
| <map:match pattern="personDetails.xml"> |
| <map:generate src="cocoon:/personDetails.source.xml" /> |
| <map:transform src="{lm:foaf.transform.foaf.document}"/> |
| <map:serialize type="xml-document"/> |
| </map:match> |
| <map:match pattern="personDetails/*.xml"> |
| <map:generate src="cocoon:/personDetails/{1}.source.xml" /> |
| <map:transform src="{lm:foaf.transform.foaf.document}"/> |
| <map:serialize type="xml-document"/> |
| </map:match> |
| <map:match pattern="personDetails/index.source.xml"> |
| <map:generate type="file" src="{lm:foaf.index}" /> |
| <map:serialize type="xml"/> |
| </map:match> |
| <map:match pattern="personDetails/index.xml"> |
| <map:generate type="file" src="cocoon:/personDetails/index.source.xml" /> |
| <map:transform src="{lm:foaf.transform.foaf.index}"/> |
| <map:serialize type="xml-document"/> |
| </map:match> |
| <map:match pattern="personDetails/*.xml"> |
| <map:generate src="cocoon:/personDetails/{1}.source.xml" /> |
| <map:transform src="{lm:foaf.transform.foaf.document}"/> |
| <map:serialize type="xml-document"/> |
| </map:match> |
| </map:pipeline> |
| </map:pipelines> |
| </map:sitemap> |