You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Georg Von Sperling <gv...@medaptus.com> on 2002/02/25 21:52:20 UTC

SVGSerializer issue temporarily resolved - still needs fixin' though ;)

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

 

Re: SVGSerializer issue temporarily resolved - still needs fixin' though ;)

Posted by Michael Hartle <mh...@hartle-klug.com>.
Georg Von Sperling wrote:

>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?
>
I'd like to be able to answer the question - the SVG2JPG serializer 
works with the Batik library, which in turn uses Suns auxiliary classes 
to generate JPEGs; sadly, this broke with the release of JDK 1.4.0, and 
nobody seems to know why; currently, generated images under that JDK 
just contain plain white space; if you find a solution for that issue, 
please be so kind and drop a note in the batik-dev mailinglist.

>Cheers,
>Georg von Sperling
>MedAptus, Inc.
>http://www.medaptus.com
>gvs@medaptus.com
>
Best regards,

Michael Hartle,
Hartle & Klug GbR


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org