cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Georg Von Sperling" <...@medaptus.com>
Subject SVGSerializer issue temporarily resolved - still needs fixin' though ;)
Date Mon, 25 Feb 2002 20:52:20 GMT
Hi there,
 
I accidentally posted a partial posting on the SVGSerializer using svg2jpeg on the cocoon-users
board too soon (darn Web-Outlook thinks that CTRL-V means "Send"). Right after that happened,
I played with the 
%TOMCAT_HOME%\webapps\cocoon\documentation\sitemap.xmap
 
and changed: 

   <map:match pattern="**graphics/**-*.jpg">
     <map:generate src="svg/{3}.xml"/>
     <map:transform src="svg/addlabel.xsl">
       <map:parameter name="use-request-parameters" value="true"/>
       <map:parameter name="label" value="{2}"/>
     </map:transform>
     <map:serialize type="svg2jpeg"/>
   </map:match>
 
to:
 
   <map:match pattern="**graphics/**-*.jpg">
     <map:generate src="svg/{3}.xml"/>
     <map:transform src="svg/addlabel.xsl">
       <map:parameter name="use-request-parameters" value="true"/>
       <map:parameter name="label" value="{2}"/>
     </map:transform>
     <map:serialize type="svg2png"/>
   </map:match>
 
This finally produced images. Problem is that the coloration is now diffent (jpg vs. png),
meaning that the logo "index-header" (the one that is with a blue background and says "Apache
Cocoon" in italics in it) is now rendering in a dark blue instead of the blue of the regular
page.
 
The problem originally was that:
1.) the sitemap compiled fine
2.) the xsp's for the documentation root shipping with C2 compiled fine
3.) when the page loads, any *.jpg files referred to in the source of the presented html were
rendered colorless and without text, meaning that the menu-items were not visible.
 
Configuration:
Windows 2000
Ant 1.4
JDK 1.4.0 build 92
Tomcat (standalone) 4.0.1
xml-cocoon2 checkout "HEAD" on Feb. 25, 2002 @ 11:30 am 
                     compile "build.bat -Dinclude.webapp.libs=yes webapp"

 
How do I fix the svg2jpg serializer?
 
Cheers,
Georg von Sperling
MedAptus, Inc.
http://www.medaptus.com
gvs@medaptus.com

 
Mime
View raw message