forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhatia Praveen, HCLT-Japan" <prav...@hcltech.co.jp>
Subject RE: Trouble with forrest's SVGSerializer from cocoon
Date Sun, 05 Dec 2004 05:41:23 GMT
 David and Ross,
    Thanks. It worked by deleting my snippet and letting the default mapping
from the resource.xmap of forrest work on it as adviced by Ross. boxes.svg
got displayed correctly.

   Thanks again

Praveen


-----Original Message-----
From: David Crossley
To: user@forrest.apache.org
Sent: 2004/12/05 13:15
Subject: Re: Trouble with forrest's SVGSerializer from cocoon

Bhatia Praveen, HCLT-Japan wrote:
> Ross:
>    Thats a good information. I will also try to use
> FORREST_HOME/main/webapp/resources.xmap and see if it works.

No. I think that you are not understanding.
Ross was saying that Forrest does this svn2png
automatically, You do not need a special project
sitemap. The resources.xmap is part of main forrest.

Everything should just work out-of-the box if you
put files in xdocs/images/foo.svg and refer to the
output documents as images/foo.png

>    Regarding the boxes.svg I have made it work in FOP, in batik,
soddipodi
> and Acrobats svg, so the format should be ok I believe.

Did you see issue FOR-229
http://issues.cocoondev.org/browse/FOR-229
Some SVG files (but not all) need the DTD declaration
to be commented-out.

--David

> Praveen
> 
> There should be no need to create a project specific match to create 
> images from svg as Forrest already does this (see 
> FORREST_HOME/main/webapp/resources.xmap). Furthermore, this match will

> prevent you serving any "images/*.png" files that are png sources - be

> careful (the resources.xmap shows how to deal with this issue).
> 
> However, given that you have created one, lets find your problem.
Where 
> What is project.images-dir set to (if anything) in forrest.properties 
> and where is your boxes.svg file (I've not look at your SVG I trust it

> is good, I'm no expert with that format).
> 
> Ross
> 

Mime
View raw message