vgritsenko 2003/09/06 23:13:39
Modified: src/blocks/batik/samples samples.xml sitemap.xmap
Log:
add hello world sample
Revision Changes Path
1.5 +13 -2 cocoon-2.1/src/blocks/batik/samples/samples.xml
Index: samples.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/batik/samples/samples.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- samples.xml 16 Aug 2003 01:44:12 -0000 1.4
+++ samples.xml 7 Sep 2003 06:13:39 -0000 1.5
@@ -8,6 +8,18 @@
<sample name="Back" href="..">to Cocoon examples main page</sample>
</group>
+ <group name="Hello World!">
+ <sample name="SVG" href="../hello-world/hello.svg">
+ SVG from the main samples
+ </sample>
+ <sample name="JPG" href="hello.jpeg">
+ Same hello in JPG format
+ </sample>
+ <sample name="PNG" href="hello.png">
+ Hello in PNG format
+ </sample>
+ </group>
+
<group name="Batik Logo">
<sample name="Batik Logo in SVG" href="batikLogo.svg">
Batik logo as it is in SVG (SVG browser, plugin, viewer needed).
@@ -60,5 +72,4 @@
Mozilla with native SVG support
</sample>
</group>
-
</samples>
1.6 +11 -1 cocoon-2.1/src/blocks/batik/samples/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/batik/samples/sitemap.xmap,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- sitemap.xmap 29 Jul 2003 03:15:45 -0000 1.5
+++ sitemap.xmap 7 Sep 2003 06:13:39 -0000 1.6
@@ -58,6 +58,16 @@
<!-- ========================== batik ================================
-->
+ <map:match pattern="hello.jpeg">
+ <map:generate src="context://samples/hello-world/hello.svg"/>
+ <map:serialize type="svg2jpeg"/>
+ </map:match>
+
+ <map:match pattern="hello.png">
+ <map:generate src="context://samples/hello-world/hello.svg"/>
+ <map:serialize type="svg2png"/>
+ </map:match>
+
<map:match pattern="*.svg">
<map:generate src="{1}.svg"/>
<map:serialize type="svgxml"/>