You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@apache.org on 2003/05/01 15:55:55 UTC
cvs commit: cocoon-2.1/src/blocks/batik/samples samples.xml sitemap.xmap
stephan 2003/05/01 06:55:55
Added: src/blocks/batik/conf svg.xsamples
src/blocks/batik/samples samples.xml sitemap.xmap
Log:
Add block sample page, thanks to Joerg Heinicke.
Revision Changes Path
1.1 cocoon-2.1/src/blocks/batik/conf/svg.xsamples
Index: svg.xsamples
===================================================================
<?xml version="1.0"?>
<xsamples xpath="/samples" unless="group[@name='Batik']">
<group name="Batik">
<sample name="Batik" href="batik/">
Examples of rasterized SVG images.
</sample>
</group>
</xsamples>
1.1 cocoon-2.1/src/blocks/batik/samples/samples.xml
Index: samples.xml
===================================================================
<?xml version="1.0" encoding="iso-8859-1"?>
<samples xmlns:xlink="http://www.w3.org/1999/xlink">
<group name="Main examples page.">
<sample name="Back" href="..">to Cocoon examples main page</sample>
</group>
<group name="Henry V">
<sample name="Henry V in SVG" href="henryV.svg">
Henry V as it is in SVG (SVG browser, plugin, viewer needed).
</sample>
<sample name="Henry V in JPEG" href="henryV.jpeg">
Henry V rasterized with Batik to JPEG.
</sample>
<sample name="Henry V in PNG" href="henryV.png">
Henry V rasterized with Batik to PNG.
</sample>
</group>
<group name="Resources">
<sample name="Batik web site" href="http://xml.apache.org/batik">
Links and reference information, SVG browser
</sample>
<sample name="Adobe SVG Viewer" href="http://www.adobe.com/svg/viewer/install/main.html">
SVG browser plugin
</sample>
</group>
</samples>
1.1 cocoon-2.1/src/blocks/batik/samples/sitemap.xmap
Index: sitemap.xmap
===================================================================
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- batik block samples sitemap -->
<!-- =========================== Components ================================ -->
<map:components>
<map:generators default="file"/>
<map:transformers default="xslt"/>
<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:readers default="resource"/>
<map:matchers default="wildcard"/>
<map:pipes default="caching"/>
</map:components>
<!-- =========================== Views =================================== -->
<map:views>
<map:view from-label="content" name="content">
<map:serialize type="xml"/>
</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="context://samples/common/style/xsl/html/simple-samples2html.xsl">
<map:parameter name="contextPath" value="{request:contextPath}"/>
</map:transform>
<map:serialize/>
</map:match>
<!-- ========================= batik ================================ -->
<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:sitemap>