You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by fe...@apache.org on 2007/05/17 19:32:28 UTC
svn commit: r539035 -
/cocoon/trunk/blocks/cocoon-batik/cocoon-batik-sample/src/main/resources/COB-INF/sitemap.xmap
Author: felixk
Date: Thu May 17 10:32:27 2007
New Revision: 539035
URL: http://svn.apache.org/viewvc?view=rev&rev=539035
Log:
-add views and other matchers
-reformatted
Modified:
cocoon/trunk/blocks/cocoon-batik/cocoon-batik-sample/src/main/resources/COB-INF/sitemap.xmap
Modified: cocoon/trunk/blocks/cocoon-batik/cocoon-batik-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-batik/cocoon-batik-sample/src/main/resources/COB-INF/sitemap.xmap?view=diff&rev=539035&r1=539034&r2=539035
==============================================================================
--- cocoon/trunk/blocks/cocoon-batik/cocoon-batik-sample/src/main/resources/COB-INF/sitemap.xmap (original)
+++ cocoon/trunk/blocks/cocoon-batik/cocoon-batik-sample/src/main/resources/COB-INF/sitemap.xmap Thu May 17 10:32:27 2007
@@ -1,19 +1,19 @@
<?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.
+ 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.
-->
<!--+
@@ -24,86 +24,92 @@
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
-<!-- =========================== Components ================================ -->
+ <!-- =========================== Components ================================ -->
- <map:components>
- <map:serializers default="html">
- <map:serializer logger="sitemap.serializer.svgxml" mime-type="image/svg+xml" name="svgxml" src="org.apache.cocoon.serialization.XMLSerializer">
- <doctype-public>-//W3C//DTD SVG 1.0//EN</doctype-public>
- <doctype-system>http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd</doctype-system>
- </map:serializer>
- <map:serializer logger="sitemap.serializer.svg2jpeg" name="svg2jpeg" src="org.apache.cocoon.serialization.SVGSerializer" mime-type="image/jpeg">
- <parameter name="quality" type="float" value="0.9"/>
- </map:serializer>
- <map:serializer logger="sitemap.serializer.svg2png" name="svg2png" src="org.apache.cocoon.serialization.SVGSerializer" mime-type="image/png"/>
- </map:serializers>
- </map:components>
-
-<!-- =========================== Views =================================== -->
-
- <map:views>
- <map:view from-label="content" name="content">
- <map:serialize type="xml"/>
- </map:view>
-
- <map:view from-label="content" name="pretty-content">
- <map:transform src="servlet:style-default:/stylesheets/system/xml2html.xslt"/>
- <map:transform type="servletLinkRewriter" />
- <map:serialize type="html"/>
- </map:view>
-
- <map:view from-position="last" name="links">
- <map:serialize type="links"/>
- </map:view>
- </map:views>
-
-<!-- =========================== Pipelines ================================= -->
-
- <map:pipelines>
- <map:pipeline type="caching">
- <map:match pattern="">
- <map:redirect-to uri="welcome"/>
- </map:match>
-
- <map:match pattern="welcome">
- <map:generate src="samples.xml"/>
- <map:transform src="servlet:style-default:/common/style/xsl/html/simple-samples2html.xsl" />
- <map:transform type="servletLinkRewriter" />
- <map:serialize/>
- </map:match>
-
- <!-- ========================== batik ================================ -->
-
- <map:match pattern="hello.jpeg">
- <map:generate src="servlet:main-sample:/hello-world/hello.svg"/>
- <map:serialize type="svg2jpeg"/>
- </map:match>
-
- <map:match pattern="hello.png">
- <map:generate src="servlet:main-sample:/hello-world/hello.svg"/>
- <map:serialize type="svg2png"/>
- </map:match>
-
- <map:match pattern="hello.svg">
- <map:generate src="servlet:main-sample:/hello-world/hello.svg"/>
- <map:serialize type="svgxml"/>
- </map:match>
-
- <map:match pattern="*.svg">
- <map:generate src="{1}.svg"/>
- <map:serialize type="svgxml"/>
- </map:match>
-
- <map:match pattern="*.jpeg">
- <map:generate src="{1}.svg"/>
- <map:serialize type="svg2jpeg"/>
- </map:match>
-
- <map:match pattern="*.png">
- <map:generate src="{1}.svg"/>
- <map:serialize type="svg2png"/>
- </map:match>
+ <map:components>
+ <map:serializers default="html">
+ <map:serializer logger="sitemap.serializer.svgxml" mime-type="image/svg+xml" name="svgxml" src="org.apache.cocoon.serialization.XMLSerializer">
+ <doctype-public>-//W3C//DTD SVG 1.0//EN</doctype-public>
+ <doctype-system>http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd</doctype-system>
+ </map:serializer>
+ <map:serializer logger="sitemap.serializer.svg2jpeg" name="svg2jpeg" src="org.apache.cocoon.serialization.SVGSerializer" mime-type="image/jpeg">
+ <parameter name="quality" type="float" value="0.9" />
+ </map:serializer>
+ <map:serializer logger="sitemap.serializer.svg2png" name="svg2png" src="org.apache.cocoon.serialization.SVGSerializer" mime-type="image/png" />
+ </map:serializers>
+ </map:components>
+
+ <!-- =========================== Views =================================== -->
+
+ <map:views>
+ <map:view from-label="content" name="content">
+ <map:serialize type="xml" />
+ </map:view>
+
+ <map:view from-label="content" name="pretty-content">
+ <!-- Make use of servlet services -->
+ <map:serialize type="servletService">
+ <map:parameter name="service" value="servlet:style-default:/service/system/xml2html" />
+ </map:serialize>
+ </map:view>
+
+ <map:view from-position="last" name="links">
+ <map:serialize type="links" />
+ </map:view>
+ </map:views>
+
+ <!-- =========================== Pipelines ================================= -->
+
+ <map:pipelines>
+ <map:pipeline type="caching">
+ <map:match pattern="">
+ <map:redirect-to uri="welcome" />
+ </map:match>
+
+ <map:match pattern="welcome">
+ <map:generate src="samples.xml" />
+ <!-- Make use of servlet services -->
+ <map:serialize type="servletService">
+ <map:parameter name="service" value="servlet:style-default:/service/common/simple-samples2html" />
+ </map:serialize>
+ </map:match>
+
+ <map:match pattern="sitemap.xmap">
+ <map:read src="sitemap.xmap" mime-type="text/xml" />
+ </map:match>
+
+ <!-- ========================== batik ================================ -->
+
+ <map:match pattern="hello.jpeg">
+ <map:generate src="servlet:main-sample:/hello-world/hello.svg" />
+ <map:serialize type="svg2jpeg" />
+ </map:match>
+
+ <map:match pattern="hello.png">
+ <map:generate src="servlet:main-sample:/hello-world/hello.svg" />
+ <map:serialize type="svg2png" />
+ </map:match>
+
+ <map:match pattern="hello.svg">
+ <map:generate src="servlet:main-sample:/hello-world/hello.svg" />
+ <map:serialize type="svgxml" />
+ </map:match>
+
+ <map:match pattern="*.svg">
+ <map:generate src="{1}.svg" />
+ <map:serialize type="svgxml" />
+ </map:match>
+
+ <map:match pattern="*.jpeg">
+ <map:generate src="{1}.svg" />
+ <map:serialize type="svg2jpeg" />
+ </map:match>
+
+ <map:match pattern="*.png">
+ <map:generate src="{1}.svg" />
+ <map:serialize type="svg2png" />
+ </map:match>
- </map:pipeline>
- </map:pipelines>
+ </map:pipeline>
+ </map:pipelines>
</map:sitemap>