You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ni...@apache.org on 2003/11/28 18:12:43 UTC
cvs commit: xml-forrest/src/core/context raw.xmap resources.xmap sitemap.xmap
nicolaken 2003/11/28 09:12:43
Modified: src/core/context raw.xmap resources.xmap sitemap.xmap
Log:
<action dev="NKB" type="add" context="core" >
New file format: '.aart'. These are text files that are converted
automatically be Cocoon in SVG, if requested with a '.png' extension.
</action>
Also now pmg from SVG works again.
Revision Changes Path
1.2 +1 -5 xml-forrest/src/core/context/raw.xmap
Index: raw.xmap
===================================================================
RCS file: /home/cvs/xml-forrest/src/core/context/raw.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- raw.xmap 20 Oct 2003 15:37:49 -0000 1.1
+++ raw.xmap 28 Nov 2003 17:12:43 -0000 1.2
@@ -59,10 +59,6 @@
<map:read src="{project:content}/{0}" mime-type="image/gif" />
</map:match>
- <map:match pattern="**.png">
- <map:read src="{project:content}/{0}" mime-type="image/png" />
- </map:match>
-
<map:match pattern="**.jpg">
<map:read src="{project:content}/{0}" mime-type="image/jpeg" />
</map:match>
1.4 +12 -2 xml-forrest/src/core/context/resources.xmap
Index: resources.xmap
===================================================================
RCS file: /home/cvs/xml-forrest/src/core/context/resources.xmap,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- resources.xmap 26 Nov 2003 09:15:31 -0000 1.3
+++ resources.xmap 28 Nov 2003 17:12:43 -0000 1.4
@@ -12,7 +12,10 @@
==================================================== -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
- <map:generators default="file" />
+ <map:generators default="file" >
+ <map:generator name="asciiart-svg"
+ src="org.apache.cocoon.generation.asciiart.AsciiArtSVGGenerator"/>
+ </map:generators>
<map:serializers default="html">
<map:serializer name="svg2jpeg" mime-type="image/jpeg" src="org.apache.cocoon.serialization.SVGSerializer">
<parameter name="quality" type="float" value="1.0" />
@@ -178,6 +181,13 @@
<map:select type="exists">
<map:when test="{project:content.xdocs}/{1}.svg">
<map:generate src="{project:content.xdocs}/{1}.svg" />
+ <map:transform src="{forrest:stylesheets}/project2text.xsl">
+ <map:parameter name="config-file" value="{project:skinconf}"/>
+ </map:transform>
+ <map:serialize type="svg2png" />
+ </map:when>
+ <map:when test="{project:content.xdocs}/{1}.aart">
+ <map:generate type="asciiart-svg" src="{project:content.xdocs}/{1}.aart" />
<map:transform src="{forrest:stylesheets}/project2text.xsl">
<map:parameter name="config-file" value="{project:skinconf}"/>
</map:transform>
1.4 +4 -1 xml-forrest/src/core/context/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-forrest/src/core/context/sitemap.xmap,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sitemap.xmap 26 Nov 2003 09:15:32 -0000 1.3
+++ sitemap.xmap 28 Nov 2003 17:12:43 -0000 1.4
@@ -374,6 +374,9 @@
<map:match pattern="**images**">
<map:mount uri-prefix="" src="resources.xmap" check-reload="yes" />
</map:match>
+ <map:match pattern="**.png">
+ <map:mount uri-prefix="" src="resources.xmap" check-reload="yes" />
+ </map:match>
<map:match pattern="**favicon.ico">
<map:mount uri-prefix="" src="resources.xmap" check-reload="yes" />
</map:match>