| <?xml version="1.0"?> |
| <!-- |
| Copyright 2002-2004 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:components> |
| <map:generators default="file"/> |
| <map:serializers default="html"/> |
| <map:matchers default="wildcard"/> |
| <map:selectors> |
| <map:selector logger="sitemap.selector.config" name="config" |
| src="org.apache.cocoon.selection.SimpleSelector" /> |
| </map:selectors> |
| <map:transformers default="xslt"> |
| <map:transformer name="i18n" |
| src="org.apache.cocoon.transformation.I18nTransformer"> |
| <catalogues default="tabs"> |
| <catalogue id="tabs" name="tabs" location="{project:translations}"/> |
| </catalogues> |
| <!-- <untranslated-text>untranslated</untranslated-text--> |
| <cache-at-startup>true</cache-at-startup> |
| </map:transformer> |
| </map:transformers> |
| <map:actions> |
| <map:action name="locale" src="org.apache.cocoon.acting.LocaleAction" /> |
| </map:actions> |
| </map:components> |
| <map:pipelines> |
| <map:pipeline > |
| <map:match pattern="**tab-*.html"> |
| <map:select type="exists"> |
| <map:when test="{project:content.xdocs}tabs.xml"> |
| <map:generate src="{project:content.xdocs}tabs.xml"/> |
| </map:when> |
| <map:when test="{lm:tabs.xml}"> |
| <map:generate src="{lm:tabs.xml}"/> |
| </map:when> |
| <map:otherwise> |
| <map:generate src="{project:content.xdocs}tabs.xml"/> |
| </map:otherwise> |
| </map:select> |
| <map:transform type="xinclude"/> |
| <map:select type="config"> |
| <map:parameter name="value" value="{defaults:i18n}"/> |
| <map:when test="true"> |
| <map:act type="locale"> |
| <map:transform src="{forrest:stylesheets}/i18n.xsl"/> |
| <map:transform type="i18n"> |
| <map:parameter name="locale" value="{request:locale}"/> |
| </map:transform> |
| </map:act> |
| </map:when> |
| </map:select> |
| <map:transform type="linkrewriter" src="cocoon://{1}linkmap-{2}.html"/> |
| <map:transform src="{lm:dataModel-html-tab-to-menu.xsl}"> |
| <!--<map:transform src="{lm:dataModel-html-tab2menu.xsl}">--> |
| <map:parameter name="path" value="{1}{2}.html"/> |
| </map:transform> |
| <map:serialize /> |
| </map:match> |
| </map:pipeline> |
| </map:pipelines> |
| </map:sitemap> |