sitemap.xmap
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:2k
- <?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:serializers default="fo2pdf">
- <map:serializer name="fo2pdf"
- src="org.apache.cocoon.serialization.FOPSerializer"
- mime-type="application/pdf">
- <user-config src="/home/ndaley/hadoop/branch-0.20/src/docs/cn/uming.conf"/>
- </map:serializer>
- </map:serializers>
- </map:components>
- <map:pipelines>
- <map:pipeline>
- <!-- generate .pdf files from .fo -->
- <map:match type="regexp" pattern="^(.*?)([^/]*).pdf$">
- <map:select type="exists">
- <map:when test="{lm:project.{1}{2}.pdf}">
- <map:read src="{lm:project.{1}{2}.pdf}"/>
- </map:when>
- <map:when test="{lm:project.{1}{2}.fo}">
- <map:generate src="{lm:project.{1}{2}.fo}"/>
- <map:serialize type="fo2pdf"/>
- </map:when>
- <map:otherwise>
- <map:generate src="cocoon://{1}{2}.fo"/>
- <map:serialize type="fo2pdf"/>
- </map:otherwise>
- </map:select>
- </map:match>
- </map:pipeline>
- </map:pipelines>
- </map:sitemap>